Class TablePlayer
- java.lang.Object
-
- com.djrapitops.plan.delivery.domain.TablePlayer
-
- All Implemented Interfaces:
java.lang.Comparable<TablePlayer>
public class TablePlayer extends java.lang.Object implements java.lang.Comparable<TablePlayer>
Represents a player displayed on a player table on players tab or /players page.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TablePlayer.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TablePlayer.Builder
builder()
static TablePlayer.Builder
builderFromBaseUser(BaseUser baseUser)
int
compareTo(TablePlayer other)
boolean
equals(java.lang.Object o)
java.util.Optional<java.lang.Long>
getActivePlaytime()
java.util.Optional<ActivityIndex>
getCurrentActivityIndex()
java.util.Optional<java.lang.String>
getGeolocation()
java.util.Optional<java.lang.Long>
getLastSeen()
java.util.Optional<java.lang.String>
getName()
java.util.UUID
getPlayerUUID()
java.util.Optional<java.lang.Long>
getRegistered()
java.util.Optional<java.lang.Integer>
getSessionCount()
int
hashCode()
boolean
isBanned()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static TablePlayer.Builder builder()
-
builderFromBaseUser
public static TablePlayer.Builder builderFromBaseUser(BaseUser baseUser)
-
getPlayerUUID
public java.util.UUID getPlayerUUID()
-
getName
public java.util.Optional<java.lang.String> getName()
-
getCurrentActivityIndex
public java.util.Optional<ActivityIndex> getCurrentActivityIndex()
-
getActivePlaytime
public java.util.Optional<java.lang.Long> getActivePlaytime()
-
getSessionCount
public java.util.Optional<java.lang.Integer> getSessionCount()
-
getRegistered
public java.util.Optional<java.lang.Long> getRegistered()
-
getLastSeen
public java.util.Optional<java.lang.Long> getLastSeen()
-
getGeolocation
public java.util.Optional<java.lang.String> getGeolocation()
-
isBanned
public boolean isBanned()
-
compareTo
public int compareTo(TablePlayer other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<TablePlayer>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-