edu.mit.jverbnet.util
Interface Checks.IMask<S>

Type Parameters:
S - the superclass of the objects dealt with by this mask
All Superinterfaces:
Checks.ICondition<S>
All Known Implementing Classes:
Checks.Mask
Enclosing class:
Checks

public static interface Checks.IMask<S>
extends Checks.ICondition<S>

A mask object provides the ability to substitute different values for a specified object if it matches the condition.

Since:
JVerbnet 1.0.0
Version:
1.0.0
Author:
Mark A. Finlayson

Method Summary
<T extends S>
T
mask(T value, T mask)
          Returns the mask value if the specified value satisfies the condition; otherwise, the original value.
 
Methods inherited from interface edu.mit.jverbnet.util.Checks.ICondition
allowsNulls, is
 

Method Detail

mask

<T extends S> T mask(T value,
                     T mask)
Returns the mask value if the specified value satisfies the condition; otherwise, the original value.

Parameters:
value - the value to be masked, if necessary
mask - the mask value
Returns:
the mask value if the specified value satisfies the condition; otherwise, the original value.
Since:
JVerbnet 1.0.0


Copyright © 2012 ${project.organization.name}. All Rights Reserved.