Package aQute.libg.parameters
Class Attributes
java.lang.Object
aQute.libg.parameters.Attributes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Attributes.DataType<Double>
static final Attributes
static 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>
static final Attributes.DataType<String>
static final Attributes.DataType<String>
-
Constructor Summary
ConstructorsConstructorDescriptionAttributes
(Attributes attrs) Attributes
(Attributes... attrs) Attributes
(Map<String, String> v) -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(StringBuilder appendable) void
append
(StringBuilder sb, Map.Entry<String, String> e) void
clear()
boolean
containsKey
(Object name) Deprecated.boolean
containsKey
(String name) boolean
containsValue
(Object value) Deprecated.boolean
containsValue
(String value) static Object
convert
(Attributes.Type t, String s) static Object
static Attributes
entrySet()
boolean
Deprecated.Deprecated.<T> T
getTyped
(Attributes.DataType<T> type, String adname) int
hashCode()
Deprecated.boolean
isEmpty()
boolean
isEqual
(Attributes other) keySet()
void
mergeWith
(Attributes other, boolean override) Merge the attributesvoid
putAll
(Attributes attrs) void
void
putAllTyped
(Map<String, Object> attrs) void
Deprecated.int
size()
static String
toDirective
(String key) Check if a directive, if so, return directive name otherwise nulltoString()
static Attributes.Type
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
STRING
-
LONG
-
DOUBLE
-
VERSION
-
LIST_STRING
-
LIST_LONG
-
LIST_DOUBLE
-
LIST_VERSION
-
EMPTY_ATTRS
-
-
Constructor Details
-
Attributes
public Attributes() -
Attributes
-
Attributes
-
Attributes
-
-
Method Details
-
putAllTyped
-
putTyped
-
clear
public void clear() -
containsKey
-
containsKey
Deprecated.- Specified by:
containsKey
in interfaceMap<String,
String>
-
containsValue
-
containsValue
Deprecated.- Specified by:
containsValue
in 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
-
equals
Deprecated. -
hashCode
Deprecated. -
isEqual
-
getTyped
-
getTyped
-
toType
-
convert
-
convert
-
mergeWith
Merge the attributes -
toDirective
Check if a directive, if so, return directive name otherwise null -
create
-
with
-