Class TeamImpl
java.lang.Object
com.mewna.catnip.entity.impl.misc.TeamImpl
- All Implemented Interfaces:
Entity
,Team
,HasIcon
,HasName
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 06/24/19.
- Author:
- Bowser65
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TeamImpl.TeamImplBuilder
builder()
catnip()
Returns the catnip instance associated with this entity.void
boolean
int
hashCode()
icon()
iconUrl
(ImageOptions options) long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) members()
members
(List<TeamMember> members) name()
long
The ID of the team owner, as a long.ownerIdAsLong
(long ownerIdAsLong) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
TeamImpl
public TeamImpl() -
TeamImpl
public TeamImpl(Catnip catnip, long idAsLong, long ownerIdAsLong, String name, String icon, List<TeamMember> members)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
iconUrl
- Specified by:
iconUrl
in interfaceHasIcon
- Returns:
- The icon's CDN URL, with the specified options applied. Will be
null if
HasIcon.icon()
is null, except in the case of aUser
.
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
ownerIdAsLong
public long ownerIdAsLong()Description copied from interface:Team
The ID of the team owner, as a long.- Specified by:
ownerIdAsLong
in interfaceTeam
- Returns:
- Long representing their ID.
-
name
-
icon
-
members
-
idAsLong
- Returns:
this
.
-
ownerIdAsLong
- Returns:
this
.
-
name
- Returns:
this
.
-
icon
- Returns:
this
.
-
members
- Returns:
this
.
-