Class TemplateImpl
java.lang.Object
com.mewna.catnip.entity.impl.guild.TemplateImpl
- All Implemented Interfaces:
Template
,HasCreatedAt
,HasName
,HasNullableDescription
,HasUpdatedAt
,Timestamped
- Since:
- 12/31/20.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
code()
createdAtString
(String createdAtString) creator()
long
creatorIdAsLong
(long creatorIdAsLong) description
(String description) boolean
dirty()
dirty
(boolean dirty) name()
serializedSourceGuild
(Guild serializedSourceGuild) long
sourceGuildIdAsLong
(long sourceGuildIdAsLong) updatedAtString
(String updatedAtString) int
usageCount
(int usageCount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.HasCreatedAt
createdAt, createdAtTimestamp
Methods inherited from interface com.mewna.catnip.entity.partials.HasUpdatedAt
updatedAt, updatedAtTimestamp
Methods inherited from interface com.mewna.catnip.entity.guild.Template
creatorId, sourceGuildId
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Constructor Details
-
TemplateImpl
public TemplateImpl() -
TemplateImpl
-
-
Method Details
-
builder
-
code
-
name
-
description
- Specified by:
description
in interfaceHasNullableDescription
- Returns:
- The entity's description. May be null.
-
usageCount
public int usageCount()- Specified by:
usageCount
in interfaceTemplate
-
creatorIdAsLong
public long creatorIdAsLong()- Specified by:
creatorIdAsLong
in interfaceTemplate
-
creator
-
createdAtString
- Specified by:
createdAtString
in interfaceHasCreatedAt
-
updatedAtString
- Specified by:
updatedAtString
in interfaceHasUpdatedAt
-
sourceGuildIdAsLong
public long sourceGuildIdAsLong()- Specified by:
sourceGuildIdAsLong
in interfaceTemplate
-
serializedSourceGuild
- Specified by:
serializedSourceGuild
in interfaceTemplate
-
dirty
public boolean dirty() -
code
- Returns:
this
.
-
name
- Returns:
this
.
-
description
- Returns:
this
.
-
usageCount
- Returns:
this
.
-
creatorIdAsLong
- Returns:
this
.
-
creator
- Returns:
this
.
-
createdAtString
- Returns:
this
.
-
updatedAtString
- Returns:
this
.
-
sourceGuildIdAsLong
- Returns:
this
.
-
serializedSourceGuild
- Returns:
this
.
-
dirty
- Returns:
this
.
-