Package aQute.libg.parameters
Class Attributes
java.lang.Object
aQute.libg.parameters.Attributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Attributes.DataType<Double>static final Attributesstatic final Attributes.DataType<List<Double>>static final Attributes.DataType<List<Long>>static final Attributes.DataType<List<String>>static final Attributes.DataType<List<String>>static final Attributes.DataType<Long>private static final MethodHandleprivate static final Stringstatic final Attributes.DataType<String>private static final PatternPattern for List with list typeprivate final Map<String,Attributes.Type> static final Attributes.DataType<String> -
Constructor Summary
ConstructorsModifierConstructorDescriptionAttributes(Attributes attrs) Attributes(Attributes... attrs) Attributes(Map<String, String> v) privateAttributes(Map<String, String> map, Map<String, Attributes.Type> types) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(StringBuilder appendable) private voidappend(StringBuilder sb, String key, String value) voidappend(StringBuilder sb, Map.Entry<String, String> e) voidclear()booleancontainsKey(Object name) Deprecated.booleancontainsKey(String name) booleancontainsValue(Object value) Deprecated.booleancontainsValue(String value) static Objectconvert(Attributes.Type t, String s) static Objectstatic AttributesentrySet()booleanDeprecated.Deprecated.private Attributes.TypegetObjectType(Object member) <T> TgetTyped(Attributes.DataType<T> type, String adname) inthashCode()Deprecated.booleanisEmpty()booleanisEqual(Attributes other) keySet()voidmergeWith(Attributes other, boolean override) Merge the attributesvoidputAll(Attributes attrs) voidvoidputAllTyped(Map<String, Object> attrs) voidDeprecated.intsize()splitListAttribute(String input) static StringtoDirective(String key) Check if a directive, if so, return directive name otherwise nulltoString()static Attributes.Typevalues()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
ORG_OSGI_FRAMEWORK_VERSION
- See Also:
-
newVersion
-
STRING
-
LONG
-
DOUBLE
-
VERSION
-
LIST_STRING
-
LIST_LONG
-
LIST_DOUBLE
-
LIST_VERSION
-
TYPED
Pattern for List with list type -
map
-
types
-
EMPTY_ATTRS
-
-
Constructor Details
-
Attributes
-
Attributes
public Attributes() -
Attributes
-
Attributes
-
Attributes
-
-
Method Details
-
putAllTyped
-
putTyped
-
getObjectType
-
clear
public void clear() -
containsKey
-
containsKey
Deprecated.- Specified by:
containsKeyin interfaceMap<String,String>
-
containsValue
-
containsValue
Deprecated.- Specified by:
containsValuein interfaceMap<String,String>
-
entrySet
-
get
Deprecated. -
get
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
getType
-
putAll
-
putAll
-
remove
Deprecated. -
remove
-
size
public int size() -
values
-
getVersion
-
toString
-
append
-
append
-
toString
-
append
-
equals
Deprecated. -
hashCode
Deprecated. -
isEqual
-
getTyped
-
getTyped
-
toType
-
convert
-
convert
-
splitListAttribute
- Throws:
IllegalArgumentException
-
mergeWith
Merge the attributes -
toDirective
Check if a directive, if so, return directive name otherwise null -
create
-
with
-