org.openpermis.policy.predicate
Class Constant<T>
java.lang.Object
org.openpermis.policy.predicate.Constant<T>
- Type Parameters:
T
- constant value type.
- All Implemented Interfaces:
- Value<T>
public class Constant<T>
- extends Object
- implements Value<T>
A constant value.
- Since:
- 0.1.0
Constructor Summary |
Constant(T value)
Creates a constant. |
value
private T value
- Since:
- 0.1.0
Constant
public Constant(T value)
- Creates a constant.
getType
public Class<?> getType()
- Specified by:
getType
in interface Value<T>
- Since:
- 0.1.0
getValue
public T getValue()
- Returns the value.
- Returns:
- the value.
- Since:
- 0.1.0
valueOf
public T valueOf(TimeStamp timeStamp,
Map<String,?> arguments)
- Description copied from interface:
Value
- Returns the enclosed value.
- Specified by:
valueOf
in interface Value<T>
- Since:
- 0.1.0
isMatchable
public boolean isMatchable(Map<String,Class<?>> arguments)
- Specified by:
isMatchable
in interface Value<T>
- Since:
- 0.3.0
equals
public final boolean equals(Object obj)
- Overrides:
equals
in class Object
- Since:
- 0.1.0
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- Since:
- 0.1.0
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG