public final class Algorithms extends Object implements Serializable
Integer.MAX_VALUE
algorithms may be defined.| Modifier and Type | Method and Description |
|---|---|
boolean |
addAlgorithm(Algorithm algorithm)
Adds a new algorithm.
|
Algorithm |
getAlgorithm(String id)
Returns the algorithm with a given id.
|
Set<Algorithm> |
getAlgorithms()
Returns all algorithms.
|
boolean |
hasAlgorithm(String id)
Returns whether an algorithm exists with the given id.
|
String |
toString() |
public Set<Algorithm> getAlgorithms()
Set of Algorithm
objects.public boolean hasAlgorithm(String id)
id - an algorithm id String.true if the algorithm exists, false
otherwise.public Algorithm getAlgorithm(String id)
id - an algorithm id String.Algorithm object, or null if no
algorithm with the given id exists or the given id is
null.public boolean addAlgorithm(Algorithm algorithm)
algorithm - an Algorithm object.true if successful, false if not.Copyright © 2012–2017 Emory University. All rights reserved.