@Test public void testSerialization() { DataExists expected = new DataExists(TestModel.TEST_PATH, DataStoreVersions.CURRENT_VERSION); Object serialized = expected.toSerializable(); assertEquals("Serialized type", DataExists.class, serialized.getClass()); DataExists actual = DataExists.fromSerializable(SerializationUtils.clone((Serializable) serialized)); assertEquals("getPath", expected.getPath(), actual.getPath()); assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, actual.getVersion()); }
public static DataExists fromSerializable(final Object serializable) { Preconditions.checkArgument(serializable instanceof DataExists); return (DataExists)serializable; }
DataExists extends AbstractRead<Boolean> { public static DataExists fromSerializable(final Object serializable) { Preconditions.checkArgument(serializable instanceof DataExists); return (DataExists)serializable; } }
DataExists extends AbstractRead<Boolean> { public static DataExists fromSerializable(final Object serializable) { Preconditions.checkArgument(serializable instanceof DataExists); return (DataExists)serializable; } DataExists();  DataExists(final YangInstanceIdentifier path, final short version); }
DataExists extends AbstractRead<Boolean> { public static DataExists fromSerializable(final Object serializable) { Preconditions.checkArgument(serializable instanceof DataExists); return (DataExists)serializable; } DataExists();  DataExists(final YangInstanceIdentifier path, final short version); @Override FluentFuture<Boolean> apply(DOMStoreReadTransaction readDelegate); @Override void processResponse(Object response, SettableFuture<Boolean> returnFuture); static DataExists fromSerializable(final Object serializable); static boolean isSerializedType(Object message); }
DataExists extends AbstractRead<Boolean> { public static DataExists fromSerializable(final Object serializable) { Preconditions.checkArgument(serializable instanceof DataExists); return (DataExists)serializable; } DataExists();  DataExists(final YangInstanceIdentifier path, final short version); @Override FluentFuture<Boolean> apply(DOMStoreReadTransaction readDelegate); @Override void processResponse(Object response, SettableFuture<Boolean> returnFuture); static DataExists fromSerializable(final Object serializable); static boolean isSerializedType(Object message);  }