Package com.helger.commons.type
Class ObjectType
- java.lang.Object
-
- com.helger.commons.type.ObjectType
-
- All Implemented Interfaces:
IComparable<ObjectType>,IHasName,Comparable<ObjectType>
@Immutable public class ObjectType extends Object implements IComparable<ObjectType>, IHasName
This class encapsulates an internal object type.
Note: it is not based on an interface, because this may lead to difficulties comparing different object type implementations of the same interface. By not using an interface, implementers are forced to use exactly this implementation class.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description ObjectType(String sName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ObjectType aObjType)booleanequals(Object o)StringgetName()inthashCode()StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(@Nonnull ObjectType aObjType)
- Specified by:
compareToin interfaceComparable<ObjectType>
-
-