Package org.apache.uima.util
Class NameClassPair
- java.lang.Object
-
- org.apache.uima.util.NameClassPair
-
- All Implemented Interfaces:
Serializable
public class NameClassPair extends Object implements Serializable
A class that stores the name of an attribute and the Class of that attribute's value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameClassPair(String aName, String aClassName)Creates a newNameClassPairwith the specified name and class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object aObj)Determines if two NameClassPairs are equal.StringgetClassName()Gets the class name of the attribute's value.StringgetName()Gets the name of the attribute.inthashCode()Gets the hash code for this object.StringtoString()Gets string representation of this object; useful for debugging.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of the attribute.- Returns:
- the name
-
getClassName
public String getClassName()
Gets the class name of the attribute's value.- Returns:
- the class name
-
equals
public boolean equals(Object aObj)
Determines if two NameClassPairs are equal. Two NameClassPairs are equal if both their Name and ClassName properties are equal.
-
hashCode
public int hashCode()
Gets the hash code for this object. The hash codes of two NameClassPairsxandymust be equal ifx.equals(y)returns true;
-
-