Package org.javacord.core.entity.channel
Class ChannelCategoryImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.ServerChannelImpl
-
- org.javacord.core.entity.channel.RegularServerChannelImpl
-
- org.javacord.core.entity.channel.ChannelCategoryImpl
-
- All Implemented Interfaces:
java.lang.Comparable<RegularServerChannel>
,java.util.Formattable
,Channel
,ChannelCategory
,ChannelSpecialization
,RegularServerChannel
,ServerChannel
,Deletable
,DiscordEntity
,Nameable
,Updatable
,UpdatableFromCache
,ChannelAttachableListenerManager
,ChannelCategoryAttachableListenerManager
,ServerChannelAttachableListenerManager
,Specializable<ChannelSpecialization>
,InternalChannelAttachableListenerManager
,InternalChannelCategoryAttachableListenerManager
,InternalServerChannelAttachableListenerManager
public class ChannelCategoryImpl extends RegularServerChannelImpl implements ChannelCategory, InternalChannelCategoryAttachableListenerManager
The implementation ofChannelCategory
.
-
-
Field Summary
-
Fields inherited from class org.javacord.core.entity.channel.RegularServerChannelImpl
COMPARE_BY_RAW_POSITION
-
-
Constructor Summary
Constructors Constructor Description ChannelCategoryImpl(DiscordApiImpl api, ServerImpl server, com.fasterxml.jackson.databind.JsonNode data)
Creates a new server channel category object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.List<RegularServerChannel>
getChannels()
int
hashCode()
boolean
isNsfw()
void
setNsfwFlag(boolean nsfw)
Sets the nsfw flag.java.lang.String
toString()
-
Methods inherited from class org.javacord.core.entity.channel.RegularServerChannelImpl
getEffectiveOverwrittenPermissions, getInternalOverwrittenRolePermissions, getInternalOverwrittenUserPermissions, getOverwrittenPermissions, getOverwrittenRolePermissions, getOverwrittenUserPermissions, getRawPosition, setRawPosition
-
Methods inherited from class org.javacord.core.entity.channel.ServerChannelImpl
delete, getApi, getId, getInvites, getName, getServer, getType, setName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.channel.Channel
asCategorizable, asChannelCategory, asPrivateChannel, asRegularServerChannel, asServerChannel, asServerForumChannel, asServerStageVoiceChannel, asServerTextChannel, asServerThreadChannel, asServerVoiceChannel, asTextableRegularServerChannel, asTextChannel, asVoiceChannel, canSee, canYouSee
-
Methods inherited from interface org.javacord.api.entity.channel.ChannelCategory
addCategorizable, canSeeAll, canYouSeeAll, getCurrentCachedInstance, getLatestInstance, getType, getVisibleChannels, removeCategorizable
-
Methods inherited from interface org.javacord.api.entity.Deletable
delete, delete, deleteAfter, deleteAfter, deleteAfter, deleteAfter, getApi
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getId, getIdAsString
-
Methods inherited from interface org.javacord.core.listener.channel.InternalChannelAttachableListenerManager
addChannelAttachableListener, getChannelAttachableListeners, removeChannelAttachableListener, removeListener
-
Methods inherited from interface org.javacord.core.listener.channel.server.InternalChannelCategoryAttachableListenerManager
addChannelCategoryAttachableListener, addServerChannelChangeNsfwFlagListener, getApi, getChannelCategoryAttachableListeners, getId, getServerChannelChangeNsfwFlagListeners, removeChannelCategoryAttachableListener, removeListener
-
Methods inherited from interface org.javacord.core.listener.channel.server.InternalServerChannelAttachableListenerManager
addServerChannelAttachableListener, addServerChannelChangeNameListener, addServerChannelChangeOverwrittenPermissionsListener, addServerChannelChangePositionListener, addServerChannelDeleteListener, addVoiceStateUpdateListener, getServerChannelAttachableListeners, getServerChannelChangeNameListeners, getServerChannelChangeOverwrittenPermissionsListeners, getServerChannelChangePositionListeners, getServerChannelDeleteListeners, getVoiceStateUpdateListeners, removeListener, removeServerChannelAttachableListener
-
Methods inherited from interface org.javacord.api.entity.channel.RegularServerChannel
canCreateInstantInvite, canYouCreateInstantInvite, compareTo, createUpdater, getEffectiveAllowedPermissions, getEffectiveDeniedPermissions, getEffectiveOverwrittenPermissions, getEffectivePermissions, getOverwrittenPermissions, getOverwrittenPermissions, getOverwrittenRolePermissions, getOverwrittenUserPermissions, getPosition, getRawPosition, hasAnyPermission, hasPermission, hasPermissions, updateRawPosition
-
Methods inherited from interface org.javacord.api.entity.channel.ServerChannel
createInviteBuilder, getInvites, getServer, updateName
-
Methods inherited from interface org.javacord.api.util.Specializable
as
-
-
-
-
Constructor Detail
-
ChannelCategoryImpl
public ChannelCategoryImpl(DiscordApiImpl api, ServerImpl server, com.fasterxml.jackson.databind.JsonNode data)
Creates a new server channel category object.- Parameters:
api
- The discord api instance.server
- The server of the channel.data
- The json data of the channel.
-
-
Method Detail
-
setNsfwFlag
public void setNsfwFlag(boolean nsfw)
Sets the nsfw flag.- Parameters:
nsfw
- The nsfw flag.
-
getChannels
public java.util.List<RegularServerChannel> getChannels()
- Specified by:
getChannels
in interfaceChannelCategory
-
isNsfw
public boolean isNsfw()
- Specified by:
isNsfw
in interfaceChannelCategory
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classServerChannelImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classServerChannelImpl
-
toString
public java.lang.String toString()
- Overrides:
toString
in classServerChannelImpl
-
-