Package org.jboss.hal.dmr
Class CompositeResult
- java.lang.Object
-
- org.jboss.hal.dmr.CompositeResult
-
-
Constructor Summary
Constructors Constructor Description CompositeResult(ModelNode steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEmpty()booleanisFailure()Iterator<ModelNode>iterator()intsize()ModelNodestep(int index)ModelNodestep(String step)Stream<ModelNode>stream()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CompositeResult
public CompositeResult(ModelNode steps)
-
-
Method Detail
-
step
public ModelNode step(int index)
- Parameters:
index- zero-based!- Returns:
- the related step result
-
step
public ModelNode step(String step)
- Parameters:
step- Step as "step-n" (one-based!)- Returns:
- the related step result
-
size
public int size()
- Returns:
- the number of steps
-
isEmpty
public boolean isEmpty()
- Returns:
- whether this composite result contains steps
-
isFailure
public boolean isFailure()
-
-