/** * EntityCodex support. */ public boolean isEntityType(Class<?> clazz) { return idFactory.isEntityType(clazz); }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually an EntityProxy type. */ @SuppressWarnings("unchecked") public <P extends EntityProxy> Class<P> asEntityProxy( Class<? extends BaseProxy> clazz) { assert isEntityType(clazz) : clazz.getName() + " is not an EntityProxy type"; return (Class<P>) clazz; }
/** * EntityCodex support. */ public boolean isEntityType(Class<?> clazz) { return idFactory.isEntityType(clazz); }
/** * EntityCodex support. */ public boolean isEntityType(Class<?> clazz) { return idFactory.isEntityType(clazz); }
/** * EntityCodex support. */ public boolean isEntityType(Class<?> clazz) { return idFactory.isEntityType(clazz); }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually an EntityProxy type. */ @SuppressWarnings("unchecked") public <P extends EntityProxy> Class<P> asEntityProxy( Class<? extends BaseProxy> clazz) { assert isEntityType(clazz) : clazz.getName() + " is not an EntityProxy type"; return (Class<P>) clazz; }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually an EntityProxy type. */ @SuppressWarnings("unchecked") public <P extends EntityProxy> Class<P> asEntityProxy( Class<? extends BaseProxy> clazz) { assert isEntityType(clazz) : clazz.getName() + " is not an EntityProxy type"; return (Class<P>) clazz; }
/** * A utility function to handle generic type conversion. This method will also * assert that {@code clazz} is actually an EntityProxy type. */ @SuppressWarnings("unchecked") public <P extends EntityProxy> Class<P> asEntityProxy( Class<? extends BaseProxy> clazz) { assert isEntityType(clazz) : clazz.getName() + " is not an EntityProxy type"; return (Class<P>) clazz; }