public final class ClanMate
extends java.lang.Object
Constructor and Description |
---|
ClanMate(CSVRecord record)
Deprecated.
Use
fromCsv(CSVRecord) . |
ClanMate(java.lang.String name,
java.lang.String rank,
long experience,
int kills)
Creates a new
ClanMate . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static java.util.Optional<ClanMate> |
fromCsv(CSVRecord record)
|
long |
getExperience()
Gets the experience contributed to the clan by this clan mate.
|
int |
getKills()
Gets the amount of kills earned by this clan mate.
|
java.lang.String |
getName()
Gets the name of this clan mate.
|
java.lang.String |
getRank()
Gets the rank of this clan mate.
|
int |
hashCode() |
java.lang.String |
toString() |
public ClanMate(java.lang.String name, java.lang.String rank, long experience, int kills)
ClanMate
.name
- The name of the clan mate.rank
- The rank of the clan mate.experience
- The contributed experience of the clan mate.kills
- The amount of earned kills by the clan mate.@Deprecated public ClanMate(CSVRecord record)
fromCsv(CSVRecord)
.record
- The CSVRecord
.public static java.util.Optional<ClanMate> fromCsv(CSVRecord record)
record
- The record.ClanMate
or Optional.empty()
if the record was invalid.public java.lang.String getName()
public java.lang.String getRank()
public long getExperience()
public int getKills()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object