public boolean getHead() {
    if (isEmpty()) {
      throw new IllegalArgumentException("Error: Queue is Empty!");
    }
    return data[head];
  }
get the value in the front.

@return value in the front
library-udf/src/main/java/org/apache/iotdb/library/util/BooleanCircularQueue.java