|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jverbnet.util.Checks.Condition<S>
edu.mit.jverbnet.util.Checks.Check<S>
edu.mit.jverbnet.util.Checks.Mask<S>
S
- the supertype of the objects dealt with by this maskpublic abstract static class Checks.Mask<S>
Abstract implementation of a mask.
Constructor Summary | |
---|---|
Checks.Mask(boolean allowsNulls)
Creates a new mask object. |
Method Summary | ||
---|---|---|
|
mask(T value,
T mask)
Returns the mask value if the specified value satisfies the condition; otherwise, the original value. |
Methods inherited from class edu.mit.jverbnet.util.Checks.Condition |
---|
allowsNulls |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.mit.jverbnet.util.Checks.ICondition |
---|
allowsNulls, is |
Methods inherited from interface edu.mit.jverbnet.util.Checks.ICheck |
---|
check |
Constructor Detail |
---|
public Checks.Mask(boolean allowsNulls)
allowsNulls
- the value to be returned by the Checks.Condition.allowsNulls()
methodMethod Detail |
---|
public <T extends S> T mask(T value, T mask)
Checks.IMask
mask
in interface Checks.IMask<S>
value
- the value to be masked, if necessarymask
- the mask value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |