Class SenderMap
java.lang.Object
com.kamikazejam.kamicommon.util.id.SenderMap
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<SenderType> static final List
<SenderPresence> static final List
<SenderPresence> static final List
<SenderType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addValue
(String value, SenderPresence presence) void
addValue
(String value, List<SenderPresence> presences) void
addValue
(String value, List<SenderPresence> presences, List<SenderType> types) void
clear()
boolean
contains
(String value, SenderPresence presence, SenderType type) getPresence
(String value) getPresence
(String value, SenderType type) static @NotNull List
<@NotNull SenderPresence> getPresences
(SenderPresence presence) static @NotNull List
<@NotNull SenderType> getSenderTypes
(String value) getValues
(SenderPresence presence, SenderType type) static boolean
isPlayerValue
(String value) boolean
removeValueCompletely
(String value)
-
Field Details
-
ONLINE_PRESENCES
-
OFFLINE_PRESENCES
-
PLAYER_TYPES
-
NONPLAYER_TYPES
-
-
Constructor Details
-
SenderMap
public SenderMap()
-
-
Method Details
-
getValues
@Contract("null, _ -> fail; !null, null -> fail") @NotNull public @NotNull @UnmodifiableView Set<String> getValues(SenderPresence presence, SenderType type) -
getPresence
-
getPresence
-
contains
@Contract("null, _, _ -> fail; !null, null, _ -> fail; !null, !null, null -> fail") public boolean contains(String value, SenderPresence presence, SenderType type) -
clear
public void clear() -
addValue
@Contract("null, _ -> fail; !null, null -> fail") public void addValue(String value, SenderPresence presence) -
addValue
@Contract("null, _ -> fail; !null, null -> fail") public void addValue(String value, List<SenderPresence> presences) -
addValue
@Contract("null, _, _ -> fail; !null, null, _ -> fail; !null, !null, null -> fail") public void addValue(String value, List<SenderPresence> presences, List<SenderType> types) -
removeValueCompletely
-
getPresences
@Contract("null -> fail") @NotNull public static @NotNull List<@NotNull SenderPresence> getPresences(SenderPresence presence) -
getSenderTypes
@Contract("null -> fail") @NotNull public static @NotNull List<@NotNull SenderType> getSenderTypes(String value) -
isPlayerValue
-