org.simantics.databoard.accessor.interestset
Class OptionalInterestSet

java.lang.Object
  extended by org.simantics.databoard.accessor.interestset.InterestSet
      extended by org.simantics.databoard.accessor.interestset.OptionalInterestSet

public class OptionalInterestSet
extends InterestSet

Interest set of an Optional Type.

Author:
Toni Kalajainen
See Also:
OptionalType

Field Summary
 InterestSet componentInterest
          Component intersts, null if no specific interest
static OptionalInterestSet MONITOR_EVERYTHING
           
 boolean notification
          Interested in the notification of value assignment (excludes the value)
 boolean value
          Interested in the value (includes change)
 
Constructor Summary
OptionalInterestSet(boolean notification, boolean value, InterestSet componentInterest)
           
 
Method Summary
 InterestSet getComponentInterest()
          Returns component interest or null
 boolean inNotifications()
          Returns true, if interested in notification of new value assignments.
 boolean inValues()
          Returns true, if interested in the value or notification
 
Methods inherited from class org.simantics.databoard.accessor.interestset.InterestSet
newInterestSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MONITOR_EVERYTHING

public static final OptionalInterestSet MONITOR_EVERYTHING

notification

public boolean notification
Interested in the notification of value assignment (excludes the value)


value

public boolean value
Interested in the value (includes change)


componentInterest

public InterestSet componentInterest
Component intersts, null if no specific interest

Constructor Detail

OptionalInterestSet

public OptionalInterestSet(boolean notification,
                           boolean value,
                           InterestSet componentInterest)
Method Detail

inValues

public boolean inValues()
Returns true, if interested in the value or notification

Specified by:
inValues in class InterestSet
Returns:
true, if interested in the value

inNotifications

public boolean inNotifications()
Returns true, if interested in notification of new value assignments.

Specified by:
inNotifications in class InterestSet
Returns:
true, if interested in notification

getComponentInterest

public InterestSet getComponentInterest()
Returns component interest or null

Returns:
interest of component or null