Package org.javacord.core.entity.channel
Class ChannelCategoryImpl
- java.lang.Object
-
- org.javacord.core.entity.channel.ServerChannelImpl
-
- org.javacord.core.entity.channel.ChannelCategoryImpl
-
- All Implemented Interfaces:
Comparable<T>
,Formattable
,Channel
,ChannelCategory
,ChannelSpecialization
,ServerChannel
,DiscordEntity
,Nameable
,Updatable<T>
,UpdatableFromCache
,ChannelAttachableListenerManager
,ChannelCategoryAttachableListenerManager
,ServerChannelAttachableListenerManager
,Specializable<T>
,InternalChannelAttachableListenerManager
,InternalChannelCategoryAttachableListenerManager
,InternalServerChannelAttachableListenerManager
public class ChannelCategoryImpl extends ServerChannelImpl implements ChannelCategory, InternalChannelCategoryAttachableListenerManager
The implementation ofChannelCategory
.
-
-
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(Object o)
List<ServerChannel>
getChannels()
int
hashCode()
boolean
isNsfw()
void
setNsfwFlag(boolean nsfw)
Sets the nsfw flag.String
toString()
-
Methods inherited from interface org.javacord.api.entity.channel.Channel
asCategorizable, asChannelCategory, asGroupChannel, asPrivateChannel, asServerChannel, asServerTextChannel, asServerVoiceChannel, 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.DiscordEntity
getApi, getCreationTimestamp, 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, getServerChannelAttachableListeners, getServerChannelChangeNameListeners, getServerChannelChangeOverwrittenPermissionsListeners, getServerChannelChangePositionListeners, getServerChannelDeleteListeners, removeListener, removeServerChannelAttachableListener
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.javacord.api.entity.channel.ServerChannel
canCreateInstantInvite, canYouCreateInstantInvite, compareTo, createInviteBuilder, createUpdater, delete, delete, getEffectiveAllowedPermissions, getEffectiveDeniedPermissions, getEffectiveOverwrittenPermissions, getEffectivePermissions, getInvites, getOverwrittenPermissions, getOverwrittenPermissions, getOverwrittenRolePermissions, getOverwrittenUserPermissions, getPosition, getRawPosition, getServer, hasAnyPermission, hasPermission, hasPermissions, updateName, updateRawPosition
-
Methods inherited from class org.javacord.core.entity.channel.ServerChannelImpl
delete, getApi, getEffectiveOverwrittenPermissions, getId, getInternalOverwrittenRolePermissions, getInternalOverwrittenUserPermissions, getInvites, getName, getOverwrittenPermissions, getOverwrittenRolePermissions, getOverwrittenUserPermissions, getRawPosition, getServer, setName, setPosition
-
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 List<ServerChannel> getChannels()
- Specified by:
getChannels
in interfaceChannelCategory
-
isNsfw
public boolean isNsfw()
- Specified by:
isNsfw
in interfaceChannelCategory
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classServerChannelImpl
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classServerChannelImpl
-
toString
public String toString()
- Overrides:
toString
in classServerChannelImpl
-
-