Package com.treemap

# Class OrderingFactory

java.lang.Object
com.treemap.OrderingFactory

public class OrderingFactory extends Object
Factory class for accessing predefined ordering schemes.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Ordering`
  `COLOR`
  `static final Ordering`
  `HEIGHT`
  `static final Ordering`
  `ORIGINAL`
  Keep the original ordering of the nodes.
  `static final Ordering`
  `SIZE`
  Order nodes according to their size (from largest to smallest).

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(Ordering entry)`
  `Ordering`
  `get(String name)`
  `Ordering`
  `getDefault()`
  `static OrderingFactory`
  `getInstance()`
  `List<Ordering>`
  `getOrderings()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### SIZE

    public static final Ordering SIZE
    Order nodes according to their size (from largest to smallest).

  - ### ORIGINAL

    public static final Ordering ORIGINAL
    Keep the original ordering of the nodes.

  - ### COLOR

    public static final Ordering COLOR

  - ### HEIGHT

    public static final Ordering HEIGHT

- ## Method Details

  - ### getInstance

    public static OrderingFactory getInstance()

  - ### add

    public void add(Ordering entry)

  - ### getDefault

    public Ordering getDefault()

  - ### getOrderings

    public List<Ordering> getOrderings()

  - ### get

    public Ordering get(String name)