com.atlassian.crowd.search.query.entity.restriction
Class BooleanRestrictionImpl

java.lang.Object
  extended by com.atlassian.crowd.search.query.entity.restriction.BooleanRestrictionImpl
All Implemented Interfaces:
SearchRestriction, BooleanRestriction

public class BooleanRestrictionImpl
extends Object
implements BooleanRestriction


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.crowd.search.query.entity.restriction.BooleanRestriction
BooleanRestriction.BooleanLogic
 
Constructor Summary
BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, Collection<SearchRestriction> restrictions)
           
BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, SearchRestriction... restrictions)
           
 
Method Summary
 boolean equals(Object o)
           
 BooleanRestriction.BooleanLogic getBooleanLogic()
          Returns the boolean logic used against the collection of SearchRestriction returned by BooleanRestriction.getRestrictions() to determine if an item should be included in a search result.
 Collection<SearchRestriction> getRestrictions()
          Returns a collection of restrictions.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanRestrictionImpl

public BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic,
                              SearchRestriction... restrictions)

BooleanRestrictionImpl

public BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic,
                              Collection<SearchRestriction> restrictions)
Method Detail

getRestrictions

public final Collection<SearchRestriction> getRestrictions()
Description copied from interface: BooleanRestriction
Returns a collection of restrictions. Only items satisfying the restrictions using the boolean logic are returned. I.e. if the list of restrictions are empty, then no results are returned.

Specified by:
getRestrictions in interface BooleanRestriction
Returns:
a collection of SearchRestriction
See Also:
to implement no restrictions.

getBooleanLogic

public final BooleanRestriction.BooleanLogic getBooleanLogic()
Description copied from interface: BooleanRestriction
Returns the boolean logic used against the collection of SearchRestriction returned by BooleanRestriction.getRestrictions() to determine if an item should be included in a search result.

Specified by:
getBooleanLogic in interface BooleanRestriction
Returns:
boolean logic

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Atlassian. All Rights Reserved.