Package de.openknowledge.common.domain
Class AbstractValueObject<T extends Comparable<T>>
- java.lang.Object
-
- de.openknowledge.common.domain.AbstractValueObject<T>
-
- All Implemented Interfaces:
Serializable,Comparable<T>
- Direct Known Subclasses:
AbstractStringValueObject
public abstract class AbstractValueObject<T extends Comparable<T>> extends Object implements Serializable, Comparable<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractValueObject()protectedAbstractValueObject(T value)
-
-
-
Constructor Detail
-
AbstractValueObject
protected AbstractValueObject(T value)
-
AbstractValueObject
protected AbstractValueObject()
-
-
Method Detail
-
getValue
public T getValue()
-
compareTo
public int compareTo(T other)
- Specified by:
compareToin interfaceComparable<T extends Comparable<T>>
-
-