Example usage for org.apache.commons.collections15 Factory Factory

List of usage examples for org.apache.commons.collections15 Factory Factory

Introduction

In this page you can find the example usage for org.apache.commons.collections15 Factory Factory.

Prototype

Factory

Source Link

Usage

From source file:edu.uci.ics.jung.graph.UndirectedOrderedSparseMultigraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *//*from  www. j  a v  a2s.c o  m*/
public static <V, E> Factory<UndirectedGraph<V, E>> getFactory() {
    return new Factory<UndirectedGraph<V, E>>() {
        public UndirectedGraph<V, E> create() {
            return new UndirectedOrderedSparseMultigraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.DirectedOrderedSparseMultigraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *///from ww w. j  av  a  2s . c  om
public static <V, E> Factory<DirectedGraph<V, E>> getFactory() {
    return new Factory<DirectedGraph<V, E>>() {
        public DirectedGraph<V, E> create() {
            return new DirectedOrderedSparseMultigraph<V, E>();
        }
    };
}

From source file:graph.DependencyDirectedSparceMultiGraph.java

public static <V, E> Factory<DirectedGraph<V, E>> getFactory() {
    return new Factory<DirectedGraph<V, E>>() {
        public DirectedGraph<V, E> create() {
            return new DependencyDirectedSparceMultiGraph<V, E>();
        }//from ww w .  j a v  a  2 s .  c o m
    };
}

From source file:edu.uci.ics.jung.graph.UndirectedSparseGraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 */// w  w w.  ja  v  a  2s .  c o m
public static <V, E> Factory<UndirectedGraph<V, E>> getFactory() {
    return new Factory<UndirectedGraph<V, E>>() {

        public UndirectedGraph<V, E> create() {
            return new UndirectedSparseGraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.OrderedSparseMultigraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *//*  w w  w  .j  a  v  a 2 s  .co  m*/
public static <V, E> Factory<Graph<V, E>> getFactory() {
    return new Factory<Graph<V, E>>() {
        public Graph<V, E> create() {
            return new OrderedSparseMultigraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.DirectedSparseGraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *///w w w  .j a  v  a  2  s .  c  o  m
public static final <V, E> Factory<DirectedGraph<V, E>> getFactory() {
    return new Factory<DirectedGraph<V, E>>() {
        public DirectedGraph<V, E> create() {
            return new DirectedSparseGraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.DirectedSparseMultigraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *//* www .  j a  v  a 2  s. co  m*/
public static <V, E> Factory<DirectedGraph<V, E>> getFactory() {
    return new Factory<DirectedGraph<V, E>>() {
        public DirectedGraph<V, E> create() {
            return new DirectedSparseMultigraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.SparseMultigraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *//*www .j  a va  2s.com*/
public static <V, E> Factory<Graph<V, E>> getFactory() {
    return new Factory<Graph<V, E>>() {
        public Graph<V, E> create() {
            return new SparseMultigraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.SortedSparseMultigraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *//*w  w w  .  j a  va2  s . co  m*/
public static <V, E> Factory<Graph<V, E>> getFactory() {
    return new Factory<Graph<V, E>>() {
        public Graph<V, E> create() {
            return new SortedSparseMultigraph<V, E>();
        }
    };
}

From source file:edu.uci.ics.jung.graph.SparseGraph.java

/**
 * Returns a {@code Factory} that creates an instance of this graph type.
 * @param <V> the vertex type for the graph factory
 * @param <E> the edge type for the graph factory
 *///from   w  ww.ja va  2  s. co  m
public static <V, E> Factory<Graph<V, E>> getFactory() {
    return new Factory<Graph<V, E>>() {
        public Graph<V, E> create() {
            return new SparseGraph<V, E>();
        }
    };
}