@Immutable @Loggable(value=1) public final class Conditions extends Object implements Map<String,com.amazonaws.services.dynamodbv2.model.Condition>
It's a convenient immutable builder of a map of conditions for DynamoDB query/scan operations. Use it like this:
Map<String, Condition> conditions = new Conditions() .with("hash", Conditions.equalTo("some value")) .with("range", Conditions.equalTo(12345));
Constructor and Description |
---|
Conditions()
Public ctor.
|
Conditions(Map<String,com.amazonaws.services.dynamodbv2.model.Condition> map)
Public ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,com.amazonaws.services.dynamodbv2.model.Condition>> |
entrySet() |
static com.amazonaws.services.dynamodbv2.model.Condition |
equalTo(Object value)
Equal to static condition builder (factory method).
|
com.amazonaws.services.dynamodbv2.model.Condition |
get(Object key) |
boolean |
isEmpty() |
Set<String> |
keySet() |
com.amazonaws.services.dynamodbv2.model.Condition |
put(String key,
com.amazonaws.services.dynamodbv2.model.Condition value) |
void |
putAll(Map<? extends String,? extends com.amazonaws.services.dynamodbv2.model.Condition> map) |
com.amazonaws.services.dynamodbv2.model.Condition |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<com.amazonaws.services.dynamodbv2.model.Condition> |
values() |
Conditions |
with(Map<String,com.amazonaws.services.dynamodbv2.model.Condition> map)
With these conditions.
|
Conditions |
with(String name,
com.amazonaws.services.dynamodbv2.model.Condition value)
With this condition.
|
@NotNull public static com.amazonaws.services.dynamodbv2.model.Condition equalTo(@NotNull Object value)
value
- The value to equal to@NotNull public Conditions with(@NotNull String name, @NotNull com.amazonaws.services.dynamodbv2.model.Condition value)
name
- Attribute namevalue
- The condition@NotNull public Conditions with(@NotNull Map<String,com.amazonaws.services.dynamodbv2.model.Condition> map)
map
- The conditionspublic int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map<String,com.amazonaws.services.dynamodbv2.model.Condition>
public boolean containsValue(Object value)
containsValue
in interface Map<String,com.amazonaws.services.dynamodbv2.model.Condition>
public com.amazonaws.services.dynamodbv2.model.Condition get(Object key)
public Collection<com.amazonaws.services.dynamodbv2.model.Condition> values()
public com.amazonaws.services.dynamodbv2.model.Condition put(String key, com.amazonaws.services.dynamodbv2.model.Condition value)
public com.amazonaws.services.dynamodbv2.model.Condition remove(Object key)
public void putAll(Map<? extends String,? extends com.amazonaws.services.dynamodbv2.model.Condition> map)
Copyright © 2012–2014 jcabi.com. All rights reserved.