Package aQute.bnd.osgi
Class Packages
- java.lang.Object
-
- aQute.bnd.osgi.Packages
-
- All Implemented Interfaces:
java.util.Map<Descriptors.PackageRef,Attrs>
public class Packages extends java.lang.Object implements java.util.Map<Descriptors.PackageRef,Attrs>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPackages.QUERY
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<Descriptors.PackageRef,Attrs>map
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidappend(java.lang.StringBuilder sb)voidclear()booleancontainsBinaryName(java.lang.String s)booleancontainsFQN(java.lang.String s)booleancontainsKey(Descriptors.PackageRef name)booleancontainsKey(java.lang.Object name)Deprecated.booleancontainsValue(Attrs value)booleancontainsValue(java.lang.Object value)Deprecated.java.util.Set<java.util.Map.Entry<Descriptors.PackageRef,Attrs>>entrySet()booleanequals(java.lang.Object other)Deprecated.Attrsget(Descriptors.PackageRef key)Attrsget(Descriptors.PackageRef packageRef, Attrs deflt)Attrsget(java.lang.Object key)Deprecated.AttrsgetByBinaryName(java.lang.String s)AttrsgetByFQN(java.lang.String s)inthashCode()Deprecated.booleanisEmpty()java.util.Set<Descriptors.PackageRef>keySet()voidmerge(Descriptors.PackageRef ref, boolean unique, Attrs... attrs)Attrsput(Descriptors.PackageRef ref)Attrsput(Descriptors.PackageRef key, Attrs value)voidputAll(java.util.Map<? extends Descriptors.PackageRef,? extends Attrs> map)voidputAllIfAbsent(java.util.Map<Descriptors.PackageRef,? extends Attrs> map)Attrsremove(Descriptors.PackageRef var0)Attrsremove(java.lang.Object var0)Deprecated.intsize()MapStream<Descriptors.PackageRef,Attrs>stream()java.lang.StringtoString()java.util.Collection<Attrs>values()
-
-
-
Field Detail
-
map
private final java.util.Map<Descriptors.PackageRef,Attrs> map
-
-
Constructor Detail
-
Packages
public Packages(Packages other)
-
Packages
public Packages()
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
containsKey
public boolean containsKey(Descriptors.PackageRef name)
-
containsKey
@Deprecated public boolean containsKey(java.lang.Object name)
Deprecated.- Specified by:
containsKeyin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
containsValue
public boolean containsValue(Attrs value)
-
containsValue
@Deprecated public boolean containsValue(java.lang.Object value)
Deprecated.- Specified by:
containsValuein interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
entrySet
public java.util.Set<java.util.Map.Entry<Descriptors.PackageRef,Attrs>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
stream
public MapStream<Descriptors.PackageRef,Attrs> stream()
-
get
@Deprecated public Attrs get(java.lang.Object key)
Deprecated.- Specified by:
getin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
get
public Attrs get(Descriptors.PackageRef key)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
keySet
public java.util.Set<Descriptors.PackageRef> keySet()
- Specified by:
keySetin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
put
public Attrs put(Descriptors.PackageRef ref)
-
put
public Attrs put(Descriptors.PackageRef key, Attrs value)
- Specified by:
putin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
putAll
public void putAll(java.util.Map<? extends Descriptors.PackageRef,? extends Attrs> map)
- Specified by:
putAllin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
putAllIfAbsent
public void putAllIfAbsent(java.util.Map<Descriptors.PackageRef,? extends Attrs> map)
-
remove
@Deprecated public Attrs remove(java.lang.Object var0)
Deprecated.- Specified by:
removein interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
remove
public Attrs remove(Descriptors.PackageRef var0)
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
values
public java.util.Collection<Attrs> values()
- Specified by:
valuesin interfacejava.util.Map<Descriptors.PackageRef,Attrs>
-
getByFQN
public Attrs getByFQN(java.lang.String s)
-
getByBinaryName
public Attrs getByBinaryName(java.lang.String s)
-
containsFQN
public boolean containsFQN(java.lang.String s)
-
containsBinaryName
public boolean containsBinaryName(java.lang.String s)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
append
public void append(java.lang.StringBuilder sb)
-
merge
public void merge(Descriptors.PackageRef ref, boolean unique, Attrs... attrs)
-
get
public Attrs get(Descriptors.PackageRef packageRef, Attrs deflt)
-
equals
@Deprecated public boolean equals(java.lang.Object other)
Deprecated.- Specified by:
equalsin interfacejava.util.Map<Descriptors.PackageRef,Attrs>- Overrides:
equalsin classjava.lang.Object
-
hashCode
@Deprecated public int hashCode()
Deprecated.- Specified by:
hashCodein interfacejava.util.Map<Descriptors.PackageRef,Attrs>- Overrides:
hashCodein classjava.lang.Object
-
-