Package org.apache.uima.cas.impl
Class FeatureStructureImplC
java.lang.Object
org.apache.uima.cas.impl.FeatureStructureImpl
org.apache.uima.cas.impl.FeatureStructureImplC
- All Implemented Interfaces:
Cloneable
,FeatureStructure
- Direct Known Subclasses:
AnnotationBaseImpl
,CommonArrayFSImpl
,CommonAuxArrayFSImpl
,SofaFSImpl
Feature structure implementation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
(package private)
FeatureStructureImplC
(CASImpl casImpl, int addr) -
Method Summary
Modifier and TypeMethodDescriptionboolean
A feature structure is equal to another feature structure iff it is identical in the underlying representation.int
getCAS()
Return the CAS that this FS belongs to.int
hashCode()
Will return a hash code that's consistent with equality, i.e., if two FSs are equal, they will also return the same hash code.Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
clone, getavoidcollisionTypeCode, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toString
-
Field Details
-
casImpl
-
addr
protected final int addr
-
-
Constructor Details
-
FeatureStructureImplC
protected FeatureStructureImplC() -
FeatureStructureImplC
FeatureStructureImplC(CASImpl casImpl, int addr)
-
-
Method Details
-
getAddress
public int getAddress()- Specified by:
getAddress
in classFeatureStructureImpl
-
getCAS
Description copied from interface:FeatureStructure
Return the CAS that this FS belongs to.- Returns:
- The CAS.
-
getCASImpl
- Specified by:
getCASImpl
in classFeatureStructureImpl
-
equals
Description copied from interface:FeatureStructure
A feature structure is equal to another feature structure iff it is identical in the underlying representation.- Specified by:
equals
in interfaceFeatureStructure
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()Description copied from interface:FeatureStructure
Will return a hash code that's consistent with equality, i.e., if two FSs are equal, they will also return the same hash code.- Specified by:
hashCode
in interfaceFeatureStructure
- Overrides:
hashCode
in classObject
- Returns:
- The hash code.
-