#
# Licensed to Elasticsearch under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

#
# Painless definition file. This defines the hierarchy of classes,
# what methods and fields they have, etc.
#
#### Interfaces

class java.util.function.BiConsumer {
  void accept(def,def)
  BiConsumer andThen(BiConsumer)
}

class java.util.function.BiFunction {
  BiFunction andThen(Function)
  def apply(def,def)
}

class java.util.function.BinaryOperator {
  BinaryOperator maxBy(Comparator)
  BinaryOperator minBy(Comparator)
}

class java.util.function.BiPredicate {
  BiPredicate and(BiPredicate)
  BiPredicate negate()
  BiPredicate or(BiPredicate)
  boolean test(def,def)
}

class java.util.function.BooleanSupplier {
  boolean getAsBoolean()
}

class java.util.function.Consumer {
  void accept(def)
  Consumer andThen(Consumer)
}

class java.util.function.DoubleBinaryOperator {
  double applyAsDouble(double,double)
}

class java.util.function.DoubleConsumer {
  void accept(double)
  DoubleConsumer andThen(DoubleConsumer)
}

class java.util.function.DoubleFunction {
  def apply(double)
}

class java.util.function.DoublePredicate {
  DoublePredicate and(DoublePredicate)
  DoublePredicate negate()
  DoublePredicate or(DoublePredicate)
  boolean test(double)
}

class java.util.function.DoubleSupplier {
  double getAsDouble()
}

class java.util.function.DoubleToIntFunction {
  int applyAsInt(double)
}

class java.util.function.DoubleToLongFunction {
  long applyAsLong(double)
}

class java.util.function.DoubleUnaryOperator {
  DoubleUnaryOperator andThen(DoubleUnaryOperator)
  double applyAsDouble(double)
  DoubleUnaryOperator compose(DoubleUnaryOperator)
  DoubleUnaryOperator identity()
}

class java.util.function.Function {
  Function andThen(Function)
  def apply(def)
  Function compose(Function)
  Function identity()
}

class java.util.function.IntBinaryOperator {
  int applyAsInt(int,int)
}

class java.util.function.IntConsumer {
  void accept(int)
  IntConsumer andThen(IntConsumer)
}

class java.util.function.IntFunction {
  def apply(int)
}

class java.util.function.IntPredicate {
  IntPredicate and(IntPredicate)
  IntPredicate negate()
  IntPredicate or(IntPredicate)
  boolean test(int)
}

class java.util.function.IntSupplier {
  int getAsInt()
}

class java.util.function.IntToDoubleFunction {
  double applyAsDouble(int)
}

class java.util.function.IntToLongFunction {
  long applyAsLong(int)
}

class java.util.function.IntUnaryOperator {
  IntUnaryOperator andThen(IntUnaryOperator)
  int applyAsInt(int)
  IntUnaryOperator compose(IntUnaryOperator)
  IntUnaryOperator identity()
}

class java.util.function.LongBinaryOperator {
  long applyAsLong(long,long)
}

class java.util.function.LongConsumer {
  void accept(long)
  LongConsumer andThen(LongConsumer)
}

class java.util.function.LongFunction {
  def apply(long)
}

class java.util.function.LongPredicate {
  LongPredicate and(LongPredicate)
  LongPredicate negate()
  LongPredicate or(LongPredicate)
  boolean test(long)
}

class java.util.function.LongSupplier {
  long getAsLong()
}

class java.util.function.LongToDoubleFunction {
  double applyAsDouble(long)
}

class java.util.function.LongToIntFunction {
  int applyAsInt(long)
}

class java.util.function.LongUnaryOperator {
  LongUnaryOperator andThen(LongUnaryOperator)
  long applyAsLong(long)
  LongUnaryOperator compose(LongUnaryOperator)
  LongUnaryOperator identity()
}

class java.util.function.ObjDoubleConsumer {
  void accept(def,double)
}

class java.util.function.ObjIntConsumer {
  void accept(def,int)
}

class java.util.function.ObjLongConsumer {
  void accept(def,long)
}

class java.util.function.Predicate {
  Predicate and(Predicate)
  Predicate isEqual(def)
  Predicate negate()
  Predicate or(Predicate)
  boolean test(def)
}

class java.util.function.Supplier {
  def get()
}

class java.util.function.ToDoubleBiFunction {
  double applyAsDouble(def,def)
}

class java.util.function.ToDoubleFunction {
  double applyAsDouble(def)
}

class java.util.function.ToIntBiFunction {
  int applyAsInt(def,def)
}

class java.util.function.ToIntFunction {
  int applyAsInt(def)
}

class java.util.function.ToLongBiFunction {
  long applyAsLong(def,def)
}

class java.util.function.ToLongFunction {
  long applyAsLong(def)
}

class java.util.function.UnaryOperator {
  UnaryOperator identity()
}
