Class Deadband.DeadbandResult

  • Enclosing class:
    Deadband

    public static class Deadband.DeadbandResult
    extends java.lang.Object
    Provides the state of the deadband, whether or not the value has changed. If the value is an array, includes which indexes changed. If it's an array and indexes is null, it means the entire structure has changed. IMPORTANT: If the array length changes, the indexes will include the values that are either new or no longer present, which means that indexes might be included that no longer exist.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeadbandResult​(boolean changed)  
      DeadbandResult​(boolean changed, int[] indexes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[] getIndexes()  
      boolean isChanged()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeadbandResult

        public DeadbandResult​(boolean changed)
      • DeadbandResult

        public DeadbandResult​(boolean changed,
                              int[] indexes)
    • Method Detail

      • isChanged

        public boolean isChanged()
      • getIndexes

        public int[] getIndexes()