org.apache.uima.cas.impl

## Class TypeImpl_primitive

- java.lang.Object
- - org.apache.uima.cas.impl.TypeImpl
  - - org.apache.uima.cas.impl.TypeImpl_primitive

- All Implemented Interfaces:
    Comparable<TypeImpl>, Iterable<Feature>, Type
  Direct Known Subclasses:
    TypeImpl_string

      public class TypeImpl_primitive
      extends TypeImpl

- - ### Field Summary

    - ### Fields inherited from class org.apache.uima.cas.impl.TypeImpl

      `isBuiltIn, isCreatableAndNotBuiltinArray, isFeatureFinal, isInheritanceFinal, isLongOrDouble, isRefType, javaClass, singleton`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TypeImpl_primitive(String name, TypeSystemImpl tsi, TypeImpl supertype, Class<?> javaType)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isPrimitive()` Check if the type is one of the primitive types.
    `boolean` | `subsumes(TypeImpl ti)`

    - ### Methods inherited from class org.apache.uima.cas.impl.TypeImpl

      `compareTo, equals, getAppropriateFeatures, getCode, getComponentSlotKind, getComponentType, getFeature, getFeatureByBaseName, getFeatureImpls, getFeatures, getFeaturesAsStream, getFsSpaceReq, getFsSpaceReq, getFsSpaceReq, getJCasClassName, getMergedStaticFeaturesIntroducedByThisType, getName, getNbrOfLongOrDoubleFeatures, getNumberOfFeatures, getShortName, getSuperType, getTypeSystem, hashCode, hashCodeNameLong, hasRefFeature, isAnnotationBaseType, isAnnotationType, isAppropriateFeature, isArray, isCreatableAndNotBuiltinArray, isFeatureFinal, isInheritanceFinal, isLongOrDouble, isStringOrStringSubtype, isStringSubtype, isTopType, isTypedFsArray, iterator, prettyPrint, prettyPrintWithSubTypes, subsumesStrictly, subsumesValue, toString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.uima.cas.Type

      `subsumes`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### TypeImpl_primitive

          public TypeImpl_primitive(String name,
                                    TypeSystemImpl tsi,
                                    TypeImpl supertype,
                                    Class<?> javaType)

  - ### Method Detail

    - #### isPrimitive

          public boolean isPrimitive()

      Description copied from interface: `Type`
      Check if the type is one of the primitive types.
      Specified by:
        `isPrimitive` in interface `Type`
      Overrides:
        `isPrimitive` in class `TypeImpl`
      Returns:
        `true` iff type is a primitive type.
      See Also:
        `Type.isPrimitive()`

    - #### subsumes

          public boolean subsumes(TypeImpl ti)

      Overrides:
        `subsumes` in class `TypeImpl`
      Parameters:
        `ti` - the subtype to check
      Returns:
        true if this type subsumes the subtype (is equal to or a supertype of the subtype)

Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.