Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.util
Class ClassFilter

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.util.ClassFilter

All Implemented Interfaces:
  Filter

    public class ClassFilter

extends Base
implements Filter

Filter which discards all objects that are not of a certain class.

Author:
  cp 1999.08.26

Constructor Summary
`ClassFilter(java.lang.Class clz)` Constructor.

Method Summary
`boolean` | `equals(java.lang.Object o)` Compare the ClassFilter with another object to determine equality.
`boolean` | `evaluate(java.lang.Object o)` Filter interface: evaluate().
`int` | `hashCode()` Determine a hash value for the ClassFilter object according to the general `Object.hashCode()` contract.
`java.lang.String` | `toString()` Return a human-readable description for this Filter.

Constructor Detail

### ClassFilter

    public ClassFilter(java.lang.Class clz)

  Constructor.

Method Detail

### evaluate

    public boolean evaluate(java.lang.Object o)

  Filter interface: evaluate().

  Specified by:
    `evaluate` in interface `Filter`
  Parameters:
    `o` - the object to test
  Returns:
    true if the test passes, false otherwise

### equals

    public boolean equals(java.lang.Object o)

  Compare the ClassFilter with another object to determine equality.

  Returns:
    true iff this ClassFilter and the passed object are equivalent ClassFilters

### hashCode

    public int hashCode()

  Determine a hash value for the ClassFilter object according to the general `Object.hashCode()` contract.

  Returns:
    an integer hash value for this ClassFilter object

### toString

    public java.lang.String toString()

  Return a human-readable description for this Filter.

  Returns:
    a String description of the Filter

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.