@Test public void toStringVBoolean() { assertThat(VTypeToString.toString(newVBoolean(true, alarmNone(), testTime)), equalTo(String.format("VBoolean[true, %s]", testTimeString))); assertThat(VTypeToString.toString(newVBoolean(false, newAlarm(AlarmSeverity.MINOR, "HIGH"), testTime)), equalTo(String.format("VBoolean[false, MINOR(HIGH), %s]", testTimeString))); }
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);  }