public class FontAttributeSet extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FontAttributeSet.Builder
Provides a Fluent API to create instances of
FontAttributeSet . |
Modifier and Type | Method and Description |
---|---|
<V extends Serializable,A extends Attribute<V>> |
contains(A expectedAttribute)
Find out whether or not this set contains a given
Attribute instance. |
<V extends Serializable,A extends Attribute<V>> |
contains(Class<A> attributeClass)
Find out whether or not this set contains an
Attribute of the given type. |
boolean |
equals(Object o) |
<V extends Serializable,A extends Attribute<V>> |
find(Class<A> attributeClass)
Returns the instance stored for the given class, if any.
|
<V extends Serializable,A extends Attribute<V>> |
findAll(Class<? extends A> attributeClass)
Return all attributes which are an instance of the given attribute class.
|
int |
hashCode() |
boolean |
isEmpty()
Find out whether or not this set contains any elements.
|
String |
toString() |
public <V extends Serializable,A extends Attribute<V>> boolean contains(Class<A> attributeClass)
Attribute
of the given type.V
- Value typeA
- Attribute typeattributeClass
- Type of Attribute
to look for.true
if this set contains an attribute of the given type, false
otherwise.public <V extends Serializable,A extends Attribute<V>> boolean contains(A expectedAttribute)
Attribute
instance.V
- Value typeA
- Attribute typeexpectedAttribute
- The attribute instance to look for. Must not be null
.true
if this instance contains the given Attribute
,
false
otherwise.public <V extends Serializable,A extends Attribute<V>> A find(Class<A> attributeClass)
attributeClass
- the type of value to look forpublic <V extends Serializable,A extends Attribute<V>> Collection<A> findAll(Class<? extends A> attributeClass)
attributeClass
- class of the type of value to look forpublic boolean isEmpty()
true
if there are no elements in the set, false
if there's at
least oneCopyright © 2024 levigo holding gmbh. All rights reserved.