|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.internal.MultiValueEntity<T>
public class MultiValueEntity<T extends NameAndValue>
| Constructor Summary | |
|---|---|
MultiValueEntity(List<T> entities)
|
|
| Method Summary | |
|---|---|
boolean |
exist()
|
T |
get(String entityName)
Get a single entity with the supplied name. |
List<T> |
getList(String entityName)
Get all entities with the supplied name. |
String |
getValue(String entityName)
Get a single entity value with the supplied name. |
List<String> |
getValues(String entityName)
Get all entity values of the entity with supplied name. |
boolean |
hasEntityWithName(String entityName)
C See if a entity with the given name exists |
Iterator<T> |
iterator()
|
List<T> |
list()
|
int |
size()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiValueEntity(List<T> entities)
| Method Detail |
|---|
public int size()
public boolean exist()
true if one or more entities are defined, false otherwise.public boolean hasEntityWithName(String entityName)
entityName - The name of the entity to check
true if the entity existspublic List<T> list()
public T get(String entityName)
entityName then
the first one is returned.
entityName - The name of the entity to find
null if no entity was found.public String getValue(String entityName)
headerName then
the first one is returned.
entityName - The name of the header to find
null if no header was found.public List<T> getList(String entityName)
entityName then
a list with only that entity is returned.
entityName - The name of the entity to find
public List<String> getValues(String entityName)
entity name then
a list with only that header value is returned.
entityName - The name of the entity to find
public Iterator<T> iterator()
iterator in interface Iterable<T extends NameAndValue>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||