Bitwig Studio Control Surface API  4.0.1
ObjectArrayValue.java
1 package com.bitwig.extension.controller.api;
2 
3 
4 import java.util.function.Supplier;
5 
7 
11 public interface ObjectArrayValue<ObjectType> extends Value<ObjectValueChangedCallback<ObjectType[]>>, Supplier<ObjectType[]>
12 {
16  @Override
17  ObjectType[] get();
18 
22  default ObjectType get(final int index)
23  {
24  return get()[index];
25  }
26 
30  default boolean isEmpty()
31  {
32  return get().length == 0;
33  }
34 }