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 java.lang.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, java.util.Collection<SearchRestriction> restrictions)
           
BooleanRestrictionImpl(BooleanRestriction.BooleanLogic booleanLogic, SearchRestriction... restrictions)
           
 
Method Summary
 boolean equals(java.lang.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.
 java.util.Collection<SearchRestriction> getRestrictions()
          Returns a collection of restrictions.
 int hashCode()
           
 java.lang.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,
                              java.util.Collection<SearchRestriction> restrictions)
Method Detail

getRestrictions

public final java.util.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2010 Atlassian. All Rights Reserved.