@Immutable public class NestedArguments extends java.lang.Object implements ComparisonArguments
| Constructor and Description |
|---|
NestedArguments(Node node) |
| Modifier and Type | Method and Description |
|---|---|
Node |
asNode()
Returns arguments as a node, if
ComparisonArguments.isNested() is false this will
return null. |
java.util.List<java.lang.String> |
asStringList()
Returns arguments as a list of string, if
ComparisonArguments.isNested() is true the
list will be empty. |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
isNested() |
java.lang.String |
toString() |
public NestedArguments(Node node)
public Node asNode()
ComparisonArgumentsComparisonArguments.isNested() is false this will
return null.asNode in interface ComparisonArgumentspublic boolean isNested()
isNested in interface ComparisonArgumentspublic java.util.List<java.lang.String> asStringList()
ComparisonArgumentsComparisonArguments.isNested() is true the
list will be empty.asStringList in interface ComparisonArgumentspublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object