Enum OccupantEvent.Type

    • Enum Constant Detail

      • ENTERED

        public static final OccupantEvent.Type ENTERED
        The occupant has entered the room.
      • EXITED

        public static final OccupantEvent.Type EXITED
        The occupant has exited the room in a normal way.
      • STATUS_CHANGED

        public static final OccupantEvent.Type STATUS_CHANGED
        The occupants has changed his or her presence status.
      • KICKED

        public static final OccupantEvent.Type KICKED
        The occupant got kicked out of the room by a moderator.
      • BANNED

        public static final OccupantEvent.Type BANNED
        The occupant got banned by an admin.
      • MEMBERSHIP_REVOKED

        public static final OccupantEvent.Type MEMBERSHIP_REVOKED
        The occupant has exited the room, because he's no longer a member of the room.
      • ROOM_BECAME_MEMBERS_ONLY

        public static final OccupantEvent.Type ROOM_BECAME_MEMBERS_ONLY
        The occupant has exited the room, because the room became member's only.
      • NICKNAME_CHANGED

        public static final OccupantEvent.Type NICKNAME_CHANGED
        The occupant has exited the room, because he changed his nickname.
      • SYSTEM_SHUTDOWN

        public static final OccupantEvent.Type SYSTEM_SHUTDOWN
        The occupant has exited the room, because the system was shutdown.
      • ROOM_DESTROYED

        public static final OccupantEvent.Type ROOM_DESTROYED
        The occupant has exited because the room got destroyed by the owner.
    • Method Detail

      • values

        public static OccupantEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OccupantEvent.Type c : OccupantEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OccupantEvent.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null