Package net.sf.eBus.feed.pattern
Enum EventPattern.PatternType
- java.lang.Object
-
- java.lang.Enum<EventPattern.PatternType>
-
- net.sf.eBus.feed.pattern.EventPattern.PatternType
-
- All Implemented Interfaces:
Serializable,Comparable<EventPattern.PatternType>
- Enclosing class:
- EventPattern
public static enum EventPattern.PatternType extends Enum<EventPattern.PatternType>
eBus patterns come in two varieties: ordered and unordered. Ordered patterns specify the order in which events are expected and the minimum and maximum quantity of each event. Unordered patterns only specify the event quantities, allowing events to arrive in any order.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EventPattern.PatternTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EventPattern.PatternType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORDERED
public static final EventPattern.PatternType ORDERED
Ordered patterns specify event arrival order and event minimum and maximum quantities.
-
UNORDERED
public static final EventPattern.PatternType UNORDERED
Unordered patterns specify event minimum and maximum quantities only, allowing events to arrive in any order.
-
-
Method Detail
-
values
public static EventPattern.PatternType[] 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 (EventPattern.PatternType c : EventPattern.PatternType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventPattern.PatternType 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
-
-