Interface ISnowflake

    • Method Detail

      • getId

        @Nonnull
        default java.lang.String getId()
        The Snowflake id of this entity. This is unique to every entity and will never change.
        Returns:
        Never-null String containing the Id.
      • getIdLong

        long getIdLong()
        The Snowflake id of this entity. This is unique to every entity and will never change.
        Returns:
        Long containing the Id.
      • getTimeCreated

        @Nonnull
        default java.time.OffsetDateTime getTimeCreated()
        The time this entity was created. Calculated through the Snowflake in getIdLong().
        Returns:
        OffsetDateTime - Time this entity was created at.
        See Also:
        TimeUtil.getTimeCreated(long)