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 Object
s are equal.
-
Constructor Summary
ConstructorDescriptionEqualsCombinable
(Object aDelegate) WrapaDelegate
with theCombinable
interface -
Method Summary
Modifier and TypeMethodDescriptioncombine
(TLcdGXYAsynchronousPaintHint.Combinable aOtherProperty) Combine this property with anotherCombinable
instance.Returns the wrapped objecttoString()
-
Constructor Details
-
EqualsCombinable
WrapaDelegate
with theCombinable
interface- 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
Combinable
instance.If for example a
Combinable
specifies the maximal refresh interval of anILcdGXYLayer
, and for two instances these intervals are 20ms and 30 ms respectively, the combine method could return aCombinable
which specifies a maximal refresh interval of 20ms. This way, the timings of bothCombinable
s are respected.The result of this method should be independent of the order of
this
andaOtherProperty
, e.g.A.combine(B)
should return anCombinable
instance which is equivalent to theCombinable
instance returned by callingB.combine(A)
.Combining a
EqualsCombinable
instance with anotherCombinable
instance can only return a non-null
Combinable
instance if theCombinable
is an instance ofEqualsCombinable
as well. In such case, the returnedCombinable
will be aEqualsCombinable
when both wrapped objects are equal. The returnedEqualsCombinable
will then have that particular object as delegate object. If both wrapped objects are not equal,null
will be returned.- Specified by:
combine
in interfaceTLcdGXYAsynchronousPaintHint.Combinable
- Parameters:
aOtherProperty
- The otherCombinable
instance- Returns:
- The combined instance, or
null
when both instances were not combinable with each other.
-
toString
-