Class IntegerEntityId

    • Constructor Detail

      • IntegerEntityId

        public IntegerEntityId​(@NotNull
                               @NotNull EntityType entityType,
                               @NotNull
                               @NotNull Integer id)
        Constructor with Integer.
        Parameters:
        entityType - Entity type.
        id - Integer.
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • asString

        public final String asString()
        Description copied from interface: EntityId
        Returns the entity identifier as string.
        Specified by:
        asString in interface EntityId
        Returns:
        Entity identifier.
      • asTypedString

        public final String asTypedString()
        Description copied from interface: EntityId
        Returns the entity identifier as string with type and identifier.
        Specified by:
        asTypedString in interface EntityId
        Returns:
        Type and identifier.
      • getType

        public final EntityType getType()
        Description copied from interface: EntityId
        Returns the type represented by this identifier.
        Specified by:
        getType in interface EntityId
        Returns:
        Type of entity.
      • getBaseType

        public final Class<Integer> getBaseType()
        Specified by:
        getBaseType in interface org.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>
      • asBaseType

        public final Integer asBaseType()
        Specified by:
        asBaseType in interface org.fuin.objects4j.vo.ValueObjectWithBaseType<Integer>