Package org.jgrapht.io
Class EmptyComponentAttributeProvider<T>
- java.lang.Object
-
- org.jgrapht.io.EmptyComponentAttributeProvider<T>
-
- Type Parameters:
T
- the component type
- All Implemented Interfaces:
ComponentAttributeProvider<T>
@Deprecated public class EmptyComponentAttributeProvider<T> extends Object implements ComponentAttributeProvider<T>
Deprecated.In favor of using lambdas.A component attribute provider which always returns an empty collection.- Author:
- Dimitrios Michail
-
-
Constructor Summary
Constructors Constructor Description EmptyComponentAttributeProvider()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,Attribute>
getComponentAttributes(T component)
Deprecated.Returns a set of attribute key/value pairs for a vertex or edge.
-
-
-
Method Detail
-
getComponentAttributes
public Map<String,Attribute> getComponentAttributes(T component)
Deprecated.Description copied from interface:ComponentAttributeProvider
Returns a set of attribute key/value pairs for a vertex or edge. If order is important in the output, be sure to use an order-deterministic map implementation.- Specified by:
getComponentAttributes
in interfaceComponentAttributeProvider<T>
- Parameters:
component
- vertex or edge for which attributes are to be obtained- Returns:
- key/value pairs, or null if no attributes should be supplied
-
-