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 ClassesNested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TeamImpl.TeamImplBuilderbuilder()catnip()Returns the catnip instance associated with this entity.voidbooleaninthashCode()icon()iconUrl(ImageOptions options) longidAsLong()The ID of this snowflake, as a long.idAsLong(long idAsLong) members()members(List<TeamMember> members) name()longThe 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, waitMethods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, idMethods 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:
catnipin interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
iconUrl
- Specified by:
iconUrlin 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:EntityReturns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:SnowflakeThe ID of this snowflake, as a long. -
ownerIdAsLong
public long ownerIdAsLong()Description copied from interface:TeamThe ID of the team owner, as a long.- Specified by:
ownerIdAsLongin interfaceTeam- Returns:
- Long representing their ID.
-
name
-
icon
-
members
-
idAsLong
- Returns:
this.
-
ownerIdAsLong
- Returns:
this.
-
name
- Returns:
this.
-
icon
- Returns:
this.
-
members
- Returns:
this.
-