@Test public void bracketsAppendedLongValue() { baseDescription.appendValue(Long.valueOf("2")); assertEquals("<2L>", result.toString()); }
@Override public Description appendValue(Object value) { if (value == null) { append("null"); } else if (value instanceof String) { toJavaSyntax((String) value); } else if (value instanceof Character) { append('"'); toJavaSyntax((Character) value); append('"'); } else if (value instanceof Byte) { append('<'); append(descriptionOf(value)); append("b>"); } else if (value instanceof Short) { append('<'); append(descriptionOf(value)); append("s>"); } else if (value instanceof Long) { append('<'); append(descriptionOf(value)); append("L>"); } else if (value instanceof Float) { append('<'); append(descriptionOf(value)); append("F>"); } else if (value.getClass().isArray()) { appendValueList("[",", ","]", new ArrayIterator(value)); } else { append('<'); append(descriptionOf(value)); append('>'); } return this; }
BaseDescription implements Description { @Override public Description appendValue(Object value) { if (value == null) { append("null"); } else if (value instanceof String) { toJavaSyntax((String) value); } else if (value instanceof Character) { append('"'); toJavaSyntax((Character) value); append('"'); } else if (value instanceof Byte) { append('<'); append(descriptionOf(value)); append("b>"); } else if (value instanceof Short) { append('<'); append(descriptionOf(value)); append("s>"); } else if (value instanceof Long) { append('<'); append(descriptionOf(value)); append("L>"); } else if (value instanceof Float) { append('<'); append(descriptionOf(value)); append("F>"); } else if (value.getClass().isArray()) { appendValueList("[",", ","]", new ArrayIterator(value)); } else { append('<'); append(descriptionOf(value)); append('>'); } return this; } }
BaseDescription implements Description { @Override public Description appendValue(Object value) { if (value == null) { append("null"); } else if (value instanceof String) { toJavaSyntax((String) value); } else if (value instanceof Character) { append('"'); toJavaSyntax((Character) value); append('"'); } else if (value instanceof Byte) { append('<'); append(descriptionOf(value)); append("b>"); } else if (value instanceof Short) { append('<'); append(descriptionOf(value)); append("s>"); } else if (value instanceof Long) { append('<'); append(descriptionOf(value)); append("L>"); } else if (value instanceof Float) { append('<'); append(descriptionOf(value)); append("F>"); } else if (value.getClass().isArray()) { appendValueList("[",", ","]", new ArrayIterator(value)); } else { append('<'); append(descriptionOf(value)); append('>'); } return this; }  }
BaseDescription implements Description { @Override public Description appendValue(Object value) { if (value == null) { append("null"); } else if (value instanceof String) { toJavaSyntax((String) value); } else if (value instanceof Character) { append('"'); toJavaSyntax((Character) value); append('"'); } else if (value instanceof Byte) { append('<'); append(descriptionOf(value)); append("b>"); } else if (value instanceof Short) { append('<'); append(descriptionOf(value)); append("s>"); } else if (value instanceof Long) { append('<'); append(descriptionOf(value)); append("L>"); } else if (value instanceof Float) { append('<'); append(descriptionOf(value)); append("F>"); } else if (value.getClass().isArray()) { appendValueList("[",", ","]", new ArrayIterator(value)); } else { append('<'); append(descriptionOf(value)); append('>'); } return this; }  @Override Description appendText(String text); @Override Description appendDescriptionOf(SelfDescribing value); @Override Description appendValue(Object value); @SafeVarargs @Override final Description appendValueList(String start, String separator, String end, T... values); @Override Description appendValueList(String start, String separator, String end, Iterable<T> values); @Override Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values); }
BaseDescription implements Description { @Override public Description appendValue(Object value) { if (value == null) { append("null"); } else if (value instanceof String) { toJavaSyntax((String) value); } else if (value instanceof Character) { append('"'); toJavaSyntax((Character) value); append('"'); } else if (value instanceof Byte) { append('<'); append(descriptionOf(value)); append("b>"); } else if (value instanceof Short) { append('<'); append(descriptionOf(value)); append("s>"); } else if (value instanceof Long) { append('<'); append(descriptionOf(value)); append("L>"); } else if (value instanceof Float) { append('<'); append(descriptionOf(value)); append("F>"); } else if (value.getClass().isArray()) { appendValueList("[",", ","]", new ArrayIterator(value)); } else { append('<'); append(descriptionOf(value)); append('>'); } return this; }  @Override Description appendText(String text); @Override Description appendDescriptionOf(SelfDescribing value); @Override Description appendValue(Object value); @SafeVarargs @Override final Description appendValueList(String start, String separator, String end, T... values); @Override Description appendValueList(String start, String separator, String end, Iterable<T> values); @Override Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values);  }