io.ebean.enhance.common.AnnotationInfo Maven / Gradle / Ivy
package io.ebean.enhance.common;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Collects the annotation information.
*/
public class AnnotationInfo {
private final Map valueMap = new HashMap<>();
private AnnotationInfo parent;
/**
* The parent is typically the class level annotation information
* which could be considered to hold default values.
*/
public AnnotationInfo(AnnotationInfo parent){
this.parent = parent;
}
@Override
public String toString() {
return valueMap.toString();
}
public void setParent(AnnotationInfo parent) {
this.parent = parent;
}
/**
* Gets or creates a list for the given prefix, it will hold the array values.
*/
@SuppressWarnings("unchecked")
public List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy