/** * Retrieves the attribute by key from the list of attributes * * @param key * @return a value for key in the list of attributes or the default value. */ public String getAttribute(String key) { return getAttribute(Attribute.keyOf(key)); }
public <T> T getAttribute(TypeToken<T> type, Annotation annotation) { return getAttribute(Key.get(type, annotation)); }
public <T> T getAttribute(Class<T> cls, String annotation) { return getAttribute(Key.get(cls, Names.named(annotation))); }
public <T> T getAttribute(Class<T> cls) { return getAttribute(Key.get(cls)); }
public <T> T getAttribute(TypeToken<T> type, String annotation) { return getAttribute(Key.get(type, Names.named(annotation))); }
public <T> T getAttribute(Class<T> cls, Annotation annotation) { return getAttribute(Key.get(cls, annotation)); }
public <T> T getAttribute(TypeToken<T> type) { return getAttribute(Key.get(type)); }