Class SimpleMultisetProperty<E>

Type Parameters:
E - The element type of the ObservableMultiset.
All Implemented Interfaces:
Multiset<E>, Iterable<E>, Collection<E>, Observable, Property<ObservableMultiset<E>>, ReadOnlyProperty<ObservableMultiset<E>>, ObservableObjectValue<ObservableMultiset<E>>, ObservableValue<ObservableMultiset<E>>, WritableObjectValue<ObservableMultiset<E>>, WritableValue<ObservableMultiset<E>>, ObservableMultisetValue<E>, WritableMultisetValue<E>, ObservableMultiset<E>
Direct Known Subclasses:
ReadOnlyMultisetWrapper

public class SimpleMultisetProperty<E> extends MultisetPropertyBase<E>
A concrete implementation of a Property wrapping an ObservableMultiset.
  • Constructor Details

    • SimpleMultisetProperty

      public SimpleMultisetProperty()
      Constructs a new unnamed SimpleMultisetProperty.
    • SimpleMultisetProperty

      public SimpleMultisetProperty(Object bean, String name)
      Constructs a new SimpleMultisetProperty for the given bean and with the given name.
      Parameters:
      bean - The bean this property is related to.
      name - The name of the property.
    • SimpleMultisetProperty

      public SimpleMultisetProperty(Object bean, String name, ObservableMultiset<E> initialValue)
      Constructs a new SimpleMultisetProperty for the given bean and with the given name and initial value.
      Parameters:
      bean - The bean this property is related to.
      name - The name of the property.
      initialValue - The initial value of the property
    • SimpleMultisetProperty

      public SimpleMultisetProperty(ObservableMultiset<E> initialValue)
      Constructs a new unnamed SimpleMultisetProperty that is not related to a bean, with the given initial value.
      Parameters:
      initialValue - The initial value of the property
  • Method Details

    • getBean

      public Object getBean()
    • getName

      public String getName()