Package org.fuin.ddd4j.ddd
Class IntegerEntityId
- java.lang.Object
-
- org.fuin.ddd4j.ddd.IntegerEntityId
-
- All Implemented Interfaces:
Serializable,Comparable<IntegerEntityId>,EntityId,TechnicalId,org.fuin.objects4j.vo.ValueObject,org.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>
public abstract class IntegerEntityId extends Object implements EntityId, Comparable<IntegerEntityId>, org.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>
Integer based entity identifier.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntegerEntityId(@NotNull EntityType entityType, @NotNull Integer id)Constructor with Integer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerasBaseType()StringasString()Returns the entity identifier as string.StringasTypedString()Returns the entity identifier as string with type and identifier.intcompareTo(IntegerEntityId other)booleanequals(Object obj)Class<Integer>getBaseType()EntityTypegetType()Returns the type represented by this identifier.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
IntegerEntityId
public IntegerEntityId(@NotNull @NotNull EntityType entityType, @NotNull @NotNull Integer id)Constructor with Integer.- Parameters:
entityType- Entity type.id- Integer.
-
-
Method Detail
-
compareTo
public final int compareTo(IntegerEntityId other)
- Specified by:
compareToin interfaceComparable<IntegerEntityId>
-
asString
public final String asString()
Description copied from interface:EntityIdReturns the entity identifier as string.
-
asTypedString
public final String asTypedString()
Description copied from interface:EntityIdReturns the entity identifier as string with type and identifier.- Specified by:
asTypedStringin interfaceEntityId- Returns:
- Type and identifier.
-
getType
public final EntityType getType()
Description copied from interface:EntityIdReturns the type represented by this identifier.
-
getBaseType
public final Class<Integer> getBaseType()
- Specified by:
getBaseTypein interfaceorg.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>
-
-