Class: EnumSet

EnumSet


The EnumSet class is a specialized collection to use when an API method requires a list of enum values to be passed.

Notes


new EnumSet()

EnumSet is an abstract Java class. Do not instantiate it and use its static methods instead.
Example

In this simple example we create a Room, setting its permissions by means of an EnumSet.

var crs = new CreateRoomSettings();
crs.setName("chat#371");
crs.setMaxUsers(10);

// Set Room permissions
crs.setRoomSettings(EnumSet.of(SFSRoomSettings.USER_ENTER_EVENT, SFSRoomSettings.USER_EXIT_EVENT, SFSRoomSettings.PUBLIC_MESSAGES));

// Create the Room
getApi().createRoom(getParentZone(), crs, null, false, null, true, true);