Enum Class EventType

java.lang.Object
java.lang.Enum<EventType>
com.bank.entities.EventType
All Implemented Interfaces:
Serializable, Comparable<EventType>, Constable

public enum EventType extends Enum<EventType>
Перечисление типов основных событий
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Событие прихода нового клиента с приоритетом 1
    Событие завершения обслуживания клиента с приоритетом 0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Неизменяемое значение приоритета
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    EventType(int p)
    Конструктор с назначением приоритета
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Геттер для получения приоритета конкретного события
    static EventType
    Returns the enum constant of this class with the specified name.
    static EventType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • COMPLETING

      public static final EventType COMPLETING
      Событие завершения обслуживания клиента с приоритетом 0
    • ARRIVAL

      public static final EventType ARRIVAL
      Событие прихода нового клиента с приоритетом 1
  • Field Details

    • priority

      private final int priority
      Неизменяемое значение приоритета
  • Constructor Details

    • EventType

      private EventType(int p)
      Конструктор с назначением приоритета
  • Method Details

    • values

      public static EventType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EventType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPriority

      public int getPriority()
      Геттер для получения приоритета конкретного события