public final class PrioritizedResultCreator<VALUE_TYPE,PRIORITY_TYPE extends java.lang.Comparable<PRIORITY_TYPE>> extends java.lang.Object implements IPriorityValue<VALUE_TYPE,PRIORITY_TYPE>
Constructor and Description |
---|
PrioritizedResultCreator(PRIORITY_TYPE maxPriority)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addResult(IPriorityValue<VALUE_TYPE,PRIORITY_TYPE> result)
Adds a new (partial) result.
|
PRIORITY_TYPE |
getPriority() |
IPriorityValue<VALUE_TYPE,PRIORITY_TYPE> |
getResult() |
VALUE_TYPE |
getValue() |
boolean |
hasMaxPrio() |
public PrioritizedResultCreator(PRIORITY_TYPE maxPriority)
maxPriority
- The maximal priority of the priority typepublic boolean addResult(IPriorityValue<VALUE_TYPE,PRIORITY_TYPE> result)
result
- The result to add, may be null (null will be ignored)public boolean hasMaxPrio()
public IPriorityValue<VALUE_TYPE,PRIORITY_TYPE> getResult()
public VALUE_TYPE getValue()
getValue
in interface IPriorityValue<VALUE_TYPE,PRIORITY_TYPE extends java.lang.Comparable<PRIORITY_TYPE>>
public PRIORITY_TYPE getPriority()
getPriority
in interface IPriorityValue<VALUE_TYPE,PRIORITY_TYPE extends java.lang.Comparable<PRIORITY_TYPE>>
Siehe auch Jowidgets Nutzerhandbuch