@Test(expected = IllegalStateException.class) public void testToObjectNotSupported() { ObjectEntryUtils.toObject(new ObjectEntry(new StringTokenizer(""))); }
public static Object toObject(ObjectEntry entry) { if(entry == null || entry.isNull()) { return null; } if(!entry.isSupported()) { throw new IllegalStateException(String.format("Unsupported with class %s", entry.getClassName())); } return ObjectConverterRegistry.convertToObject(entry.getClassName(), entry.getStrValue()); }
ObjectEntryUtils { public static Object toObject(ObjectEntry entry) { if(entry == null || entry.isNull()) { return null; } if(!entry.isSupported()) { throw new IllegalStateException(String.format("Unsupported with class %s", entry.getClassName())); } return ObjectConverterRegistry.convertToObject(entry.getClassName(), entry.getStrValue()); } }
ObjectEntryUtils { public static Object toObject(ObjectEntry entry) { if(entry == null || entry.isNull()) { return null; } if(!entry.isSupported()) { throw new IllegalStateException(String.format("Unsupported with class %s", entry.getClassName())); } return ObjectConverterRegistry.convertToObject(entry.getClassName(), entry.getStrValue()); } private  ObjectEntryUtils(); }
ObjectEntryUtils { public static Object toObject(ObjectEntry entry) { if(entry == null || entry.isNull()) { return null; } if(!entry.isSupported()) { throw new IllegalStateException(String.format("Unsupported with class %s", entry.getClassName())); } return ObjectConverterRegistry.convertToObject(entry.getClassName(), entry.getStrValue()); } private  ObjectEntryUtils(); static String toString(ObjectEntry entry); static Object toObject(ObjectEntry entry); }
ObjectEntryUtils { public static Object toObject(ObjectEntry entry) { if(entry == null || entry.isNull()) { return null; } if(!entry.isSupported()) { throw new IllegalStateException(String.format("Unsupported with class %s", entry.getClassName())); } return ObjectConverterRegistry.convertToObject(entry.getClassName(), entry.getStrValue()); } private  ObjectEntryUtils(); static String toString(ObjectEntry entry); static Object toObject(ObjectEntry entry);  }