Record Class PlayerList
java.lang.Object
java.lang.Record
com.zenith.feature.whitelist.PlayerList
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerList(String name, ArrayList<PlayerEntry> entries) Creates an instance of aPlayerListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidclear()booleanbooleanbooleancontains(GameProfile clientGameProfile) entries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.voidvoidfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerList
Creates an instance of aPlayerListrecord class.- Parameters:
name- the value for thenamerecord componententries- the value for theentriesrecord component
-
-
Method Details
-
add
-
add
-
remove
-
remove
-
clear
public void clear() -
contains
-
contains
-
contains
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-