Class TLcdGXYAsynchronousPaintHint.EqualsCombinable
- All Implemented Interfaces:
TLcdGXYAsynchronousPaintHint.Combinable
- Enclosing class:
TLcdGXYAsynchronousPaintHint
Wrapper class around any Object, allowing it to implement the Combinable
interface.
EqualsCombinable instances will only combine with other EqualsCombinable instances
when the wrapped Objects are equal.
-
Constructor Summary
ConstructorsConstructorDescriptionEqualsCombinable(Object aDelegate) WrapaDelegatewith theCombinableinterface -
Method Summary
Modifier and TypeMethodDescriptioncombine(TLcdGXYAsynchronousPaintHint.Combinable aOtherProperty) Combine this property with anotherCombinableinstance.Returns the wrapped objecttoString()
-
Constructor Details
-
EqualsCombinable
WrapaDelegatewith theCombinableinterface- Parameters:
aDelegate- The delegate object
-
-
Method Details
-
getDelegate
Returns the wrapped object- Returns:
- the wrapped object
-
combine
public TLcdGXYAsynchronousPaintHint.Combinable combine(TLcdGXYAsynchronousPaintHint.Combinable aOtherProperty) Combine this property with another
Combinableinstance.If for example a
Combinablespecifies the maximal refresh interval of anILcdGXYLayer, and for two instances these intervals are 20ms and 30 ms respectively, the combine method could return aCombinablewhich specifies a maximal refresh interval of 20ms. This way, the timings of bothCombinables are respected.The result of this method should be independent of the order of
thisandaOtherProperty, e.g.A.combine(B)should return anCombinableinstance which is equivalent to theCombinableinstance returned by callingB.combine(A).Combining a
EqualsCombinableinstance with anotherCombinableinstance can only return a non-nullCombinableinstance if theCombinableis an instance ofEqualsCombinableas well. In such case, the returnedCombinablewill be aEqualsCombinablewhen both wrapped objects are equal. The returnedEqualsCombinablewill then have that particular object as delegate object. If both wrapped objects are not equal,nullwill be returned.- Specified by:
combinein interfaceTLcdGXYAsynchronousPaintHint.Combinable- Parameters:
aOtherProperty- The otherCombinableinstance- Returns:
- The combined instance, or
nullwhen both instances were not combinable with each other.
-
toString
-