nenok.va
Interface Idempotency
- All Superinterfaces:
- Labeled, Scalability, Separativity, Serializable, Valuation
- All Known Implementing Classes:
- Identity
public interface Idempotency
- extends Scalability
Specifies an idempotent valuation. Idempotency is basically a trivial division,
therefore this interface extends Separativity
and provides furthermore
a pre-implementation of the division operator. The same holds for scalability since
all idempotent valuations are trivially scaled. However, to prevent the user to be
reliant on abstract classes (because multiple inheritance is not allowed in JAVA),
the interface offers a delegator inner class that implements division and scaling.
This delegator can be used as follows:
public Separativity inverse() {
return Idempotency.Implementor.getInstance().inverse(this);
}
or
public Scalability scale() {
return Idempotency.Implementor.getInstance().scale(this);
}
- Version:
- $LastChangedRevision: 559 $
$LastChangedDate: 2008-03-26 14:25:18 +0100 (Mi, 26 Mrz 2008) $
- Author:
- Marc Pouly