public class DefaultQueryAttributes extends Object implements IQueryAttributes
Constructor and Description |
---|
DefaultQueryAttributes() |
Modifier and Type | Method and Description |
---|---|
Object |
get(Object key)
Return the attribute value under the key.
|
Object |
put(Object key,
Object val)
Bind an attribute under the key.
|
Object |
putIfAbsent(Object key,
Object val)
Atomically bind an attribute value under the key iff the key is not
already bound.
|
Object |
remove(Object key)
Remove the attribute under the key.
|
boolean |
remove(Object key,
Object value)
Atomically remove the attribute under the key iff it has the given value.
|
String |
toString() |
public Object get(Object key)
IQueryAttributes
get
in interface IQueryAttributes
key
- The key.null
if
there is no bound attribute for that key.public Object put(Object key, Object val)
IQueryAttributes
put
in interface IQueryAttributes
key
- The key.val
- The new value (may not be null
).IQueryAttributes.get(Object)
public Object putIfAbsent(Object key, Object val)
IQueryAttributes
putIfAbsent
in interface IQueryAttributes
key
- The key.val
- The new value (may not be null
).public Object remove(Object key)
IQueryAttributes
remove
in interface IQueryAttributes
key
- The key.public boolean remove(Object key, Object value)
IQueryAttributes
remove
in interface IQueryAttributes
key
- The key.value
- The expected value for that key.true
iff the entry for that key was removed.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.