org.nuiton.wikitty.search
Class And

java.lang.Object
  extended by org.nuiton.wikitty.search.Restriction
      extended by org.nuiton.wikitty.search.And
All Implemented Interfaces:
Serializable

public class And
extends Restriction
implements Serializable

And operator is used to build conjunctive restriction for request on content. It take at least 2 args.

For example, use:

See Also:
Serialized Form

Field Summary
protected  List<Restriction> restrictions
           
 
Fields inherited from class org.nuiton.wikitty.search.Restriction
name
 
Constructor Summary
And()
          Default constructor
And(List<Restriction> restrictions)
          Constructor with all parameters initialized
 
Method Summary
 boolean equals(Object other)
          Equality test based attributes values
 List<Restriction> getRestrictions()
          Return restrictions
 int hashCode()
           
 void setRestrictions(List<Restriction> restrictions)
          Set a value to parameter restrictions.
 
Methods inherited from class org.nuiton.wikitty.search.Restriction
getName, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restrictions

protected List<Restriction> restrictions
Constructor Detail

And

public And()
Default constructor


And

public And(List<Restriction> restrictions)
Constructor with all parameters initialized

Parameters:
restrictions -
Method Detail

getRestrictions

public List<Restriction> getRestrictions()
Return restrictions

Returns:

setRestrictions

public void setRestrictions(List<Restriction> restrictions)
Set a value to parameter restrictions.

Parameters:
restrictions -

equals

public boolean equals(Object other)
Equality test based attributes values

Overrides:
equals in class Restriction
Parameters:
value - Value to compare

hashCode

public int hashCode()
Overrides:
hashCode in class Restriction


Copyright © 2009-2010 CodeLutin. All Rights Reserved.