/** * This is used to acquire the dependent key for the annotated * map. This will simply return the type that the map object is * composed to hold. This must be a serializable type, that is, * it must be a composite or supported primitive type. * * @return this returns the key object type for the map object */ protected Type getKeyType() throws Exception { if(keyType == null) { keyType = label.keyType(); if(keyType == void.class) { keyType = getDependent(0); } } return new ClassType(keyType); }
/** * This is used to acquire the dependent key for the annotated * map. This will simply return the type that the map object is * composed to hold. This must be a serializable type, that is, * it must be a composite or supported primitive type. * * @return this returns the key object type for the map object */ protected Type getKeyType() throws Exception { if(keyType == null) { keyType = label.keyType(); if(keyType == void.class) { keyType = getDependent(0); } } return new ClassType(keyType); }
/** * This is used to acquire the dependent key for the annotated * map. This will simply return the type that the map object is * composed to hold. This must be a serializable type, that is, * it must be a composite or supported primitive type. * * @return this returns the key object type for the map object */ protected Type getKeyType() throws Exception { if(keyType == null) { keyType = label.keyType(); if(keyType == void.class) { keyType = getDependent(0); } } return new ClassType(keyType); }