org.openpermis.policy.bean.basic.predicate
Class ValueSet

java.lang.Object
  extended by org.openpermis.policy.bean.basic.predicate.ValueSet

public class ValueSet
extends Object

Set of values.

Since:
0.3.0

Constructor Summary
ValueSet(List<Value<?>> values)
          Creates a set, at least one argument is needed.
ValueSet(Value<?>... values)
          Creates a set, at least one argument is needed.
 
Method Summary
 boolean containsAllElementOfSet(ValueSet otherSet, TimeStamp timeStamp, Map<String,?> arguments)
          Checks if all elements of another set are contained.
 boolean containsAnyElementOfSet(ValueSet otherSet, TimeStamp timeStamp, Map<String,?> arguments)
          Checks if any element of another set is contained.
 boolean equals(Object obj)
           
 List<Value<?>> getValues()
          Get current values.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueSet

public ValueSet(Value<?>... values)
Creates a set, at least one argument is needed.

Parameters:
values - Values.
Since:
0.3.0

ValueSet

public ValueSet(List<Value<?>> values)
Creates a set, at least one argument is needed.

Parameters:
values - Values.
Since:
0.3.0
Method Detail

getValues

public List<Value<?>> getValues()
Get current values. new


containsAnyElementOfSet

public boolean containsAnyElementOfSet(ValueSet otherSet,
                                       TimeStamp timeStamp,
                                       Map<String,?> arguments)
Checks if any element of another set is contained.

Since:
0.3.0

containsAllElementOfSet

public boolean containsAllElementOfSet(ValueSet otherSet,
                                       TimeStamp timeStamp,
                                       Map<String,?> arguments)
Checks if all elements of another set are contained.

Since:
0.3.0

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object
Since:
0.3.0

hashCode

public final int hashCode()
Overrides:
hashCode in class Object
Since:
0.3.0


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG