com.hazelcast.query
Class TruePredicate

java.lang.Object
  extended by com.hazelcast.query.TruePredicate
All Implemented Interfaces:
DataSerializable, Predicate, Serializable

public class TruePredicate
extends Object
implements DataSerializable, Predicate

A Predicate which always returns true.

See Also:
Serialized Form

Field Summary
static TruePredicate INSTANCE
          An instance of the TruePredicate.
 
Constructor Summary
TruePredicate()
           
 
Method Summary
 boolean apply(Map.Entry mapEntry)
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TruePredicate INSTANCE
An instance of the TruePredicate.

Constructor Detail

TruePredicate

public TruePredicate()
Method Detail

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

apply

public boolean apply(Map.Entry mapEntry)
Specified by:
apply in interface Predicate


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.