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:
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerEntityId(@NotNull EntityType entityType, @NotNull Integer id) Constructor with Integer. -
Method Summary
Modifier and TypeMethodDescriptionfinal Integerfinal StringasString()Returns the entity identifier as string.final StringReturns the entity identifier as string with type and identifier.final intcompareTo(IntegerEntityId other) final booleanfinal EntityTypegetType()Returns the type represented by this identifier.final inthashCode()final StringtoString()
-
Constructor Details
-
IntegerEntityId
Constructor with Integer.- Parameters:
entityType- Entity type.id- Integer.
-
-
Method Details
-
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<IntegerEntityId>
-
toString
-
asString
Description copied from interface:EntityIdReturns the entity identifier as 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
Description copied from interface:EntityIdReturns the type represented by this identifier. -
getBaseType
- Specified by:
getBaseTypein interfaceorg.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>
-
asBaseType
- Specified by:
asBaseTypein interfaceorg.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>
-