de.cau.cs.kieler.core.util
Class Dependency<T extends Comparable<T>>

java.lang.Object
  extended by de.cau.cs.kieler.core.util.Dependency<T>
Type Parameters:
T - a comparable identifier type (commonly String or Integer)

public class Dependency<T extends Comparable<T>>
extends Object

The class representing an object dependency.

Rating red

Constructor Summary
Dependency(T id)
          Constructs a strong dependency.
Dependency(T id, boolean weakDep)
          Constructs a dependency.
 
Method Summary
 T getID()
          Returns the dependency identifier.
 boolean isStrong()
          Returns whether the depdency is strong or not.
 boolean isWeak()
          Returns whether the dependency is weak or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency(T id,
                  boolean weakDep)
Constructs a dependency.

Parameters:
id - the dependency identifier
weakDep - true if the depedency is weak

Dependency

public Dependency(T id)
Constructs a strong dependency.

Parameters:
id - the dependency identifier
Method Detail

getID

public T getID()
Returns the dependency identifier.

Returns:
the depdency identifier.

isWeak

public boolean isWeak()
Returns whether the dependency is weak or not.

Returns:
true if the depdendency is weak

isStrong

public boolean isStrong()
Returns whether the depdency is strong or not.

Returns:
true if the dependecy is strong