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