@Test public void listValue() { ModelNodeResult result = new ModelNodeResult(DEFINED_RESULT_LIST_BOOLEAN); assertEquals(Collections.singletonList(true), result.booleanListValue()); assertEquals(Collections.singletonList(true), result.booleanListValue(Collections.singletonList(false))); result = new ModelNodeResult(DEFINED_RESULT_LIST_NUMBER); assertEquals(Collections.singletonList(13), result.intListValue()); assertEquals(Collections.singletonList(13L), result.longListValue()); assertArrayEquals(new double[] {13.0}, Doubles.toArray(result.doubleListValue()), 0.000001); assertEquals(Collections.singletonList("13"), result.stringListValue()); assertEquals(Collections.singletonList(13), result.intListValue(Collections.singletonList(42))); assertEquals(Collections.singletonList(13L), result.longListValue(Collections.singletonList(42L))); assertArrayEquals(new double[] {13.0}, Doubles.toArray(result.doubleListValue(Collections.singletonList(42.0))), 0.000001); assertEquals(Collections.singletonList("13"), result.stringListValue(Collections.singletonList("42"))); }
public final List<ModelNode> listValue() { return value().asList(); }
ModelNodeResult extends ModelNode { public final List<ModelNode> listValue() { return value().asList(); } }
ModelNodeResult extends ModelNode { public final List<ModelNode> listValue() { return value().asList(); } @Deprecated  ModelNodeResult();  ModelNodeResult(ModelNode original); }
ModelNodeResult extends ModelNode { public final List<ModelNode> listValue() { return value().asList(); } @Deprecated  ModelNodeResult();  ModelNodeResult(ModelNode original); final boolean isSuccess(); final boolean isFailed(); final void assertSuccess(); final void assertSuccess(String message); final void assertFailed(); final void assertFailed(String message); final boolean hasDefinedValue(); final void assertDefinedValue(); final void assertDefinedValue(String message); final void assertNotDefinedValue(); final void assertNotDefinedValue(String message); final ModelNode value(); final boolean booleanValue(); final boolean booleanValue(boolean defaultValue); final int intValue(); final int intValue(int defaultValue); final long longValue(); final long longValue(long defaultValue); final double doubleValue(); final double doubleValue(double defaultValue); final String stringValue(); final String stringValue(String defaultValue); final List<ModelNode> listValue(); final List<Boolean> booleanListValue(); final List<Boolean> booleanListValue(List<Boolean> defaultValue); final List<Integer> intListValue(); final List<Integer> intListValue(List<Integer> defaultValue); final List<Long> longListValue(); final List<Long> longListValue(List<Long> defaultValue); final List<Double> doubleListValue(); final List<Double> doubleListValue(List<Double> defaultValue); final List<String> stringListValue(); final List<String> stringListValue(List<String> defaultValue); final ModelNodeResult forBatchStep(int stepIndex); final Iterable<ModelNodeResult> forAllBatchSteps(); final ModelNode headers(); final boolean isReloadRequired(); final boolean isRestartRequired(); final boolean isFromDomain(); final ModelNodeResult forServer(String host, String server); }
ModelNodeResult extends ModelNode { public final List<ModelNode> listValue() { return value().asList(); } @Deprecated  ModelNodeResult();  ModelNodeResult(ModelNode original); final boolean isSuccess(); final boolean isFailed(); final void assertSuccess(); final void assertSuccess(String message); final void assertFailed(); final void assertFailed(String message); final boolean hasDefinedValue(); final void assertDefinedValue(); final void assertDefinedValue(String message); final void assertNotDefinedValue(); final void assertNotDefinedValue(String message); final ModelNode value(); final boolean booleanValue(); final boolean booleanValue(boolean defaultValue); final int intValue(); final int intValue(int defaultValue); final long longValue(); final long longValue(long defaultValue); final double doubleValue(); final double doubleValue(double defaultValue); final String stringValue(); final String stringValue(String defaultValue); final List<ModelNode> listValue(); final List<Boolean> booleanListValue(); final List<Boolean> booleanListValue(List<Boolean> defaultValue); final List<Integer> intListValue(); final List<Integer> intListValue(List<Integer> defaultValue); final List<Long> longListValue(); final List<Long> longListValue(List<Long> defaultValue); final List<Double> doubleListValue(); final List<Double> doubleListValue(List<Double> defaultValue); final List<String> stringListValue(); final List<String> stringListValue(List<String> defaultValue); final ModelNodeResult forBatchStep(int stepIndex); final Iterable<ModelNodeResult> forAllBatchSteps(); final ModelNode headers(); final boolean isReloadRequired(); final boolean isRestartRequired(); final boolean isFromDomain(); final ModelNodeResult forServer(String host, String server);  }