@Test public void toStringVTable() { assertThat(VTypeToString.toString(newVTable(Arrays.<Class<?>>asList(String.class, double.class, int.class), Arrays.asList("Name", "Value", "Index"), Arrays.<Object>asList(Arrays.asList("A", "B", "C", "D"), new ArrayDouble(1.3,4.23,13,321.4), new ArrayInt(1,2,3,4)))), equalTo("VTable[3x4, [Name, Value, Index]]")); }
public static String toString(VNumber vNumber) { StringBuilder builder = new StringBuilder(); Class<?> type = ValueUtil.typeOf(vNumber); builder.append(type.getSimpleName()).append('[').append(vNumber.getValue()); appendAlarm(builder, vNumber); appendTime(builder, vNumber); builder.append(']'); return builder.toString(); }
VTypeToString { public static String toString(VNumber vNumber) { StringBuilder builder = new StringBuilder(); Class<?> type = ValueUtil.typeOf(vNumber); builder.append(type.getSimpleName()).append('[').append(vNumber.getValue()); appendAlarm(builder, vNumber); appendTime(builder, vNumber); builder.append(']'); return builder.toString(); } }
VTypeToString { public static String toString(VNumber vNumber) { StringBuilder builder = new StringBuilder(); Class<?> type = ValueUtil.typeOf(vNumber); builder.append(type.getSimpleName()).append('[').append(vNumber.getValue()); appendAlarm(builder, vNumber); appendTime(builder, vNumber); builder.append(']'); return builder.toString(); } private  VTypeToString(); }
VTypeToString { public static String toString(VNumber vNumber) { StringBuilder builder = new StringBuilder(); Class<?> type = ValueUtil.typeOf(vNumber); builder.append(type.getSimpleName()).append('[').append(vNumber.getValue()); appendAlarm(builder, vNumber); appendTime(builder, vNumber); builder.append(']'); return builder.toString(); } private  VTypeToString(); static String alarmToString(Alarm alarm); static String timeToString(Time time); static String toString(VNumber vNumber); static String toString(VString vString); static String toString(VBoolean vBoolean); static String toString(VEnum vEnum); static String toString(VNumberArray vNumberArray); static String toString(VStringArray vStringArray); static String toString(VBooleanArray vBooleanArray); static String toString(VEnumArray vEnumArray); static String toString(final VTable vTable); }
VTypeToString { public static String toString(VNumber vNumber) { StringBuilder builder = new StringBuilder(); Class<?> type = ValueUtil.typeOf(vNumber); builder.append(type.getSimpleName()).append('[').append(vNumber.getValue()); appendAlarm(builder, vNumber); appendTime(builder, vNumber); builder.append(']'); return builder.toString(); } private  VTypeToString(); static String alarmToString(Alarm alarm); static String timeToString(Time time); static String toString(VNumber vNumber); static String toString(VString vString); static String toString(VBoolean vBoolean); static String toString(VEnum vEnum); static String toString(VNumberArray vNumberArray); static String toString(VStringArray vStringArray); static String toString(VBooleanArray vBooleanArray); static String toString(VEnumArray vEnumArray); static String toString(final VTable vTable);  }