Class SubscriptionArray

java.lang.Object
org.yamcs.parameter.SubscriptionArray

public class SubscriptionArray extends Object
set of subscription ids - represented as sorted array no duplicate allowed copy on write
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int subscriptionId)
    add subscription id to the array If it's already in the array, the operation has no effect
    int[]
     
    boolean
     
    boolean
    remove(int subscriptionId)
    Remove the subscriptionId from the array return true if it has been removed or false if it was not there
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SubscriptionArray

      public SubscriptionArray()
  • Method Details

    • add

      public void add(int subscriptionId)
      add subscription id to the array If it's already in the array, the operation has no effect
      Parameters:
      subscriptionId -
    • remove

      public boolean remove(int subscriptionId)
      Remove the subscriptionId from the array return true if it has been removed or false if it was not there
      Parameters:
      subscriptionId -
      Returns:
    • isEmpty

      public boolean isEmpty()
    • getArray

      public int[] getArray()
    • size

      public int size()
    • toString

      public String toString()
      Overrides:
      toString in class Object