Enum TransferTypeDirection
- java.lang.Object
-
- java.lang.Enum<TransferTypeDirection>
-
- org.cyclos.model.banking.transfertypes.TransferTypeDirection
-
- All Implemented Interfaces:
Serializable,Comparable<TransferTypeDirection>,HasMessageKey
public enum TransferTypeDirection extends Enum<TransferTypeDirection> implements HasMessageKey
Determines the direction, in relation to a transfer, for a given transfer type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SYSTEM_TO_SYSTEMSYSTEM_TO_USERUSER_TO_SELFUSER_TO_SYSTEMUSER_TO_USER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static List<TransferTypeDirection>getSystemDirections(Boolean isFrom)Returns a list with the directions involving system accounts.booleanisFromSystem()booleanisFromUser()booleanisToSystem()booleanisToUser()static TransferTypeDirectionvalueOf(String name)Returns the enum constant of this type with the specified name.static TransferTypeDirection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYSTEM_TO_SYSTEM
public static final TransferTypeDirection SYSTEM_TO_SYSTEM
-
SYSTEM_TO_USER
public static final TransferTypeDirection SYSTEM_TO_USER
-
USER_TO_SYSTEM
public static final TransferTypeDirection USER_TO_SYSTEM
-
USER_TO_USER
public static final TransferTypeDirection USER_TO_USER
-
USER_TO_SELF
public static final TransferTypeDirection USER_TO_SELF
-
-
Method Detail
-
values
public static TransferTypeDirection[] 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 (TransferTypeDirection c : TransferTypeDirection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransferTypeDirection 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 nameNullPointerException- if the argument is null
-
getSystemDirections
public static List<TransferTypeDirection> getSystemDirections(Boolean isFrom)
Returns a list with the directions involving system accounts.- Parameters:
isFrom- if true then return all FROM system directions, false means all TO system directions. Otherwise (null) returns all (from or to) system directions
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isFromSystem
public boolean isFromSystem()
-
isFromUser
public boolean isFromUser()
-
isToSystem
public boolean isToSystem()
-
isToUser
public boolean isToUser()
-
-