Enum NativeTrade.NativeTradeAction

    • Field Detail

      • closing

        private final boolean closing
        Does this action close the trade?
      • fromEuropeans

        private final boolean fromEuropeans
        Should this action originate with a European player?
    • Constructor Detail

      • NativeTradeAction

        private NativeTradeAction​(boolean closing,
                                  boolean fromEuropeans)
        Create a new native trade action.
        Parameters:
        closing - If true this is an action that closes the session.
        fromEuropeans - True if a European action.
    • Method Detail

      • values

        public static NativeTrade.NativeTradeAction[] 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 (NativeTrade.NativeTradeAction c : NativeTrade.NativeTradeAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NativeTrade.NativeTradeAction valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isClosing

        public boolean isClosing()
        Is this a closing action?
        Returns:
        True if a closing action.
      • isEuropean

        public boolean isEuropean()
        Should this action have come from a European player?
        Returns:
        True if a European action.