org.eobjects.metamodel.util
Class TruePredicate<E>

java.lang.Object
  extended by org.eobjects.metamodel.util.TruePredicate<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, Func<E,Boolean>, Predicate<E>

public final class TruePredicate<E>
extends Object
implements Predicate<E>, Serializable

A predicate that is always true

See Also:
Serialized Form

Constructor Summary
TruePredicate()
           
 
Method Summary
 boolean equals(Object obj)
           
 Boolean eval(E arg)
          Evaluates an element and transforms it using this function.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TruePredicate

public TruePredicate()
Method Detail

eval

public Boolean eval(E arg)
Description copied from interface: Func
Evaluates an element and transforms it using this function.

Specified by:
eval in interface Func<E,Boolean>
Parameters:
arg - the input given to the function
Returns:
the output result of the function

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2007-2013. All Rights Reserved.