edu.princeton.wordnet.browser.tree
Class Filter

java.lang.Object
  extended by edu.princeton.wordnet.browser.tree.Filter

public class Filter
extends java.lang.Object

Author:
bbou

Field Summary
private  boolean inverse
          Whether to inverse result
private  java.util.Set<java.lang.Short> theIds
          Filtered link id cache
 
Constructor Summary
Filter(boolean inverseFlag, java.lang.Short... theseIds)
          Constructor
 
Method Summary
 boolean isFiltered(short thisId)
          Whether this link is filtered out
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theIds

private final java.util.Set<java.lang.Short> theIds
Filtered link id cache


inverse

private final boolean inverse
Whether to inverse result

Constructor Detail

Filter

public Filter(boolean inverseFlag,
              java.lang.Short... theseIds)
Constructor

Parameters:
inverseFlag - inverse
theseIds - ids
Method Detail

isFiltered

public boolean isFiltered(short thisId)
Whether this link is filtered out

Parameters:
thisId - link id
Returns:
true if this link is filtered out

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object