Class FinishedSession

  • All Implemented Interfaces:
    DateHolder

    public class FinishedSession
    extends java.lang.Object
    implements DateHolder
    • Constructor Detail

      • FinishedSession

        public FinishedSession​(java.util.UUID playerUUID,
                               ServerUUID serverUUID,
                               long start,
                               long end,
                               long afkTime,
                               DataMap extraData)
    • Method Detail

      • getPlayerUUID

        public java.util.UUID getPlayerUUID()
      • getServerUUID

        public ServerUUID getServerUUID()
      • getStart

        public long getStart()
      • getEnd

        public long getEnd()
      • getAfkTime

        public long getAfkTime()
      • getLength

        public long getLength()
      • getActiveTime

        public long getActiveTime()
      • getMobKillCount

        public int getMobKillCount()
      • getDeathCount

        public int getDeathCount()
      • getPlayerKillCount

        public int getPlayerKillCount()
      • setAsFirstSessionIfMatches

        public void setAsFirstSessionIfMatches​(java.lang.Long registerDate)
      • isFirstSession

        public boolean isFirstSession()
      • getExtraData

        public DataMap getExtraData()
      • getExtraData

        public <T> java.util.Optional<T> getExtraData​(java.lang.Class<T> ofType)
      • getDate

        public long getDate()
        Description copied from interface: DateHolder
        Get the date the object holds.
        Specified by:
        getDate in interface DateHolder
        Returns:
        Epoch ms - milliseconds passed since January 1st 1970.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object