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
ApplicabilityDependencyIntersection
or to define a minimum applicability
as part of an ApplicabilityDependencyUnion
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalculates the applicability.clone()
boolean
implements the contract ofObject.equals(Object)
.int
hashCode()
implements the contract ofObject.hashCode()
.toString()
-
Constructor Details
-
ApplicabilityDependencySimpleLeaf
Create- Parameters:
leaf
- the depended on applicability
-
-
Method Details
-
calcApplicability
Calculates the applicability.- Specified by:
calcApplicability
in interfaceApplicable
- Parameters:
dummy
- filter- Returns:
- exactly the applicability A.
-
toString
-
clone
- Specified by:
clone
in interfaceApplicabilityDependency
- Overrides:
clone
in classObject
- Returns:
- a clone
- See Also:
-
hashCode
public int hashCode()implements the contract ofObject.hashCode()
. -
equals
implements the contract ofObject.equals(Object)
.
-