Modifier and Type | Method and Description |
---|---|
boolean |
containsMode(ModeType mode)
Gets if the given mode is present in the list.
|
static ModeStatusList<ChannelMode> |
fromChannel(Client client,
String string)
Creates a list from a given string input such as "+o Kittens".
|
static ModeStatusList<UserMode> |
fromUser(Client client,
String string)
Creates a list from a given string input such as "+iZ".
|
List<ModeStatus<ModeType>> |
getStatusByMode(ModeType mode)
Gets all mode statuses of a given mode.
|
List<ModeStatus<ModeType>> |
getStatuses()
Gets the list of statuses.
|
String |
getStatusString()
Gets the statuses in a convenient String format.
|
static <ModeType extends Mode> |
of(Collection<ModeStatus<ModeType>> statuses)
Creates a list of the given statuses.
|
static <ModeType extends Mode> |
of(ModeStatus<ModeType>... statuses)
Creates a list of the given statuses.
|
String |
toString() |
@Nonnull public static ModeStatusList<ChannelMode> fromChannel(@Nonnull Client client, @Nonnull String string)
client
- client for which this list existsstring
- string to parse@Nonnull public static ModeStatusList<UserMode> fromUser(@Nonnull Client client, @Nonnull String string)
client
- client for which this list existsstring
- string to parse@Nonnull public static <ModeType extends Mode> ModeStatusList<ModeType> of(@Nonnull ModeStatus<ModeType>... statuses)
ModeType
- type of modes being listedstatuses
- statuses@Nonnull public static <ModeType extends Mode> ModeStatusList<ModeType> of(@Nonnull Collection<ModeStatus<ModeType>> statuses)
ModeType
- type of modes being listedstatuses
- statusespublic boolean containsMode(@Nonnull ModeType mode)
mode
- mode to check@Nonnull public List<ModeStatus<ModeType>> getStatusByMode(@Nonnull ModeType mode)
mode
- mode to check@Nonnull public List<ModeStatus<ModeType>> getStatuses()
@Nonnull public String getStatusString()
Copyright © 2013–2019 Kitteh. All rights reserved.