/** * EntityCodex support. */ public boolean isValueType(Class<?> clazz) { return idFactory.isValueType(clazz); }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually a ValueProxy type. */ @SuppressWarnings("unchecked") public <P extends ValueProxy> Class<P> asValueProxy( Class<? extends BaseProxy> clazz) { assert isValueType(clazz) : clazz.getName() + " is not a ValueProxy type"; return (Class<P>) clazz; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, int clientId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, clientId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), clientId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, String serverId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, serverId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), serverId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
/** * EntityCodex support. */ public boolean isValueType(Class<?> clazz) { return idFactory.isValueType(clazz); }
/** * EntityCodex support. */ public boolean isValueType(Class<?> clazz) { return idFactory.isValueType(clazz); }
/** * EntityCodex support. */ public boolean isValueType(Class<?> clazz) { return idFactory.isValueType(clazz); }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually a ValueProxy type. */ @SuppressWarnings("unchecked") public <P extends ValueProxy> Class<P> asValueProxy( Class<? extends BaseProxy> clazz) { assert isValueType(clazz) : clazz.getName() + " is not a ValueProxy type"; return (Class<P>) clazz; }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually a ValueProxy type. */ @SuppressWarnings("unchecked") public <P extends ValueProxy> Class<P> asValueProxy( Class<? extends BaseProxy> clazz) { assert isValueType(clazz) : clazz.getName() + " is not a ValueProxy type"; return (Class<P>) clazz; }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually a ValueProxy type. */ @SuppressWarnings("unchecked") public <P extends ValueProxy> Class<P> asValueProxy( Class<? extends BaseProxy> clazz) { assert isValueType(clazz) : clazz.getName() + " is not a ValueProxy type"; return (Class<P>) clazz; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, String serverId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, serverId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), serverId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, int clientId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, clientId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), clientId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, int clientId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, clientId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), clientId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, String serverId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, serverId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), serverId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, int clientId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, clientId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), clientId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }
private <P extends BaseProxy> SimpleProxyId<P> createId(Class<P> clazz, String serverId) { SimpleProxyId<P> toReturn; if (isValueType(clazz)) { toReturn = new SimpleProxyId<P>(clazz, serverId); } else { @SuppressWarnings("unchecked") SimpleProxyId<P> temp = (SimpleProxyId<P>) new SimpleEntityProxyId<EntityProxy>( asEntityProxy(clazz), serverId); toReturn = (SimpleProxyId<P>) temp; } return toReturn; }