final enum ResolveQuantityPreference extends java.lang.Enum<E<E>>
Defines the valid preferences needed for most resolve style functions. This includes whether to prefer in queue or in work quantities.
Original Author: mphModifiers | Name | Description |
---|---|---|
static ResolveQuantityPreference |
DONE |
The logic prefers done quantities. |
static ResolveQuantityPreference |
MAX_VALUE |
|
static ResolveQuantityPreference |
MIN_VALUE |
|
static ResolveQuantityPreference |
QUEUE |
The logic prefers in queue quantities. |
static ResolveQuantityPreference |
QUEUE_OR_WORK |
The logic prefers in queue quantities first, then in work. |
static ResolveQuantityPreference |
WORK |
The logic prefers in work quantities. |
Type | Name and description |
---|---|
private boolean |
donePreferred If true, then this enum means the caller wants done quantities. |
private java.lang.String |
id The ID used for XML references. |
private boolean |
inQueuePreferred If true, then this enum means the caller wants in queue quantities. |
private boolean |
inWorkPreferred If true, then this enum means the caller wants in work quantities. |
Constructor and description |
---|
ResolveQuantityPreference
(java.lang.String id, boolean inQueuePreferred, boolean inWorkPreferred, boolean donePreferred) Build a ResolvePreference entry. |
ResolveQuantityPreference
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static ResolveQuantityPreference |
$INIT( para) |
|
boolean |
areQuantitiesPreferred(BigDecimal qtyInQueue, BigDecimal qtyInWork, BigDecimal qtyDone) Determines if the given quantities match the desired preferences. |
|
ResolveQuantityPreference |
next() |
|
ResolveQuantityPreference |
previous() |
|
static ResolveQuantityPreference |
valueOf(java.lang.String name) |
|
static ResolveQuantityPreference[] |
values() |
The logic prefers done quantities. In queue/work quantities are ignored.
The logic prefers in queue quantities. In work quantities are ignored.
The logic prefers in queue quantities first, then in work.
The logic prefers in work quantities. In queue quantities are ignored.
If true, then this enum means the caller wants done quantities. Used only by the areQuantitiesPreferred() method to avoid large switch statements.
The ID used for XML references.
If true, then this enum means the caller wants in queue quantities. Used only by the areQuantitiesPreferred() method to avoid large switch statements.
If true, then this enum means the caller wants in work quantities. Used only by the areQuantitiesPreferred() method to avoid large switch statements.
Build a ResolvePreference entry. Used only for enums above.
id
- The ID for the status.inQueuePreferred
- The quantity in queue is preferred.inWorkPreferred
- The quantity in work is preferred.donePreferred
- The quantity done is preferred.Determines if the given quantities match the desired preferences.
qtyInQueue
- The quantity in queue.qtyInWork
- The quantity in work.qtyDone
- The quantity done.