package io.ebeaninternal.server.deploy;
import java.util.Collection;
import java.util.List;
import java.util.Set;
public enum ManyType {
LIST(false, List.class),
SET(false, Set.class),
MAP(true, null);
private final boolean map;
@SuppressWarnings("rawtypes")
private final Class<? extends Collection> type;
@SuppressWarnings("rawtypes")
ManyType(boolean map, Class<? extends Collection> type) {
this.map = map;
this.type = type;
}
public boolean isMap() {
return map;
}
@SuppressWarnings("rawtypes")
public Class<? extends Collection> getCollectionType() {
return type;
}
}