Class ApplicabilityDependencySimpleLeaf
java.lang.Object
de.hsh.graja.comment.applicability.ApplicabilityDependencySimpleLeaf
- All Implemented Interfaces:
ApplicabilityDependency,Applicable,Serializable,Cloneable
An object D of this class defines a dependency on a given applicability A.
The method
calcApplicability(ApplicabilityFilter) returns exactly the applicability A.
This class can be used to define a maximum applicability as part of an
ApplicabilityDependencyIntersectionor to define a minimum applicability
as part of an ApplicabilityDependencyUnion.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalculates the applicability.clone()booleanimplements the contract ofObject.equals(Object).inthashCode()implements the contract ofObject.hashCode().toString()
-
Constructor Details
-
ApplicabilityDependencySimpleLeaf
Create- Parameters:
leaf- the depended on applicability
-
-
Method Details
-
calcApplicability
Calculates the applicability.- Specified by:
calcApplicabilityin interfaceApplicable- Parameters:
dummy- filter- Returns:
- exactly the applicability A.
-
toString
-
clone
- Specified by:
clonein interfaceApplicabilityDependency- Overrides:
clonein classObject- Returns:
- a clone
- See Also:
-
hashCode
public int hashCode()implements the contract ofObject.hashCode(). -
equals
implements the contract ofObject.equals(Object).
-