Class PermissionOverrideImpl
java.lang.Object
com.mewna.catnip.entity.impl.guild.PermissionOverrideImpl
- All Implemented Interfaces:
Entity
,PermissionOverride
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 9/15/18
- Author:
- natanbc
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.guild.PermissionOverride
PermissionOverride.OverrideType
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionPermissionOverrideImpl
(Catnip catnip, long idAsLong, PermissionOverride.OverrideType type, long allowRaw, long denyRaw) -
Method Summary
Modifier and TypeMethodDescriptionlong
allowRaw()
allowRaw
(long allowRaw) builder()
catnip()
Returns the catnip instance associated with this entity.void
long
denyRaw()
denyRaw
(long denyRaw) boolean
int
hashCode()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) toString()
type()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.guild.PermissionOverride
allow, deny
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
-
PermissionOverrideImpl
public PermissionOverrideImpl() -
PermissionOverrideImpl
public PermissionOverrideImpl(Catnip catnip, long idAsLong, PermissionOverride.OverrideType type, long allowRaw, long denyRaw)
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
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. -
type
- Specified by:
type
in interfacePermissionOverride
-
allowRaw
public long allowRaw()- Specified by:
allowRaw
in interfacePermissionOverride
-
denyRaw
public long denyRaw()- Specified by:
denyRaw
in interfacePermissionOverride
-
idAsLong
- Returns:
this
.
-
type
- Returns:
this
.
-
allowRaw
- Returns:
this
.
-
denyRaw
- Returns:
this
.
-