Package org.jgrapht.io
Class IntegerComponentNameProvider<T>
- java.lang.Object
-
- org.jgrapht.io.IntegerComponentNameProvider<T>
-
- Type Parameters:
T- the component type
- All Implemented Interfaces:
ComponentNameProvider<T>
@Deprecated public class IntegerComponentNameProvider<T> extends Object implements ComponentNameProvider<T>
Deprecated.UseIntegerIdProviderinstead.Assigns a unique integer to represent each component. Each instance of provider maintains an internal map between every component it has ever seen and the unique integer representing that edge. As a result it is probably desirable to have a separate instance for each distinct graph.- Author:
- Trevor Harmon, Amr ALHOSSARY
-
-
Constructor Summary
Constructors Constructor Description IntegerComponentNameProvider()Deprecated.Create a provider with the default base id (1).IntegerComponentNameProvider(int base)Deprecated.Create a provider with a given arbitrary base
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclear()Deprecated.Clears all cached identifiers, and resets the unique identifier counter.StringgetName(T component)Deprecated.Returns the string representation of a component.
-
-
-
Constructor Detail
-
IntegerComponentNameProvider
public IntegerComponentNameProvider()
Deprecated.Create a provider with the default base id (1).
-
IntegerComponentNameProvider
public IntegerComponentNameProvider(int base)
Deprecated.Create a provider with a given arbitrary base- Parameters:
base- the first Id to use.
-
-
Method Detail
-
clear
public void clear()
Deprecated.Clears all cached identifiers, and resets the unique identifier counter.
-
getName
public String getName(T component)
Deprecated.Returns the string representation of a component.- Specified by:
getNamein interfaceComponentNameProvider<T>- Parameters:
component- the component to be named- Returns:
- the name of the component
-
-