All Downloads are FREE. Search and download functionalities are using the official Maven repository.

griffon.javafx.MatchingBindingsExtension.groovy Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 *
 * Copyright 2008-2018 the original author or authors.
 *
 * Licensed 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.
 */
package griffon.javafx

import griffon.javafx.beans.binding.MatchingBindings
import groovy.transform.CompileStatic
import javafx.beans.binding.BooleanBinding
import javafx.beans.value.ObservableValue
import javafx.collections.ObservableList
import javafx.collections.ObservableMap
import javafx.collections.ObservableSet

import javax.annotation.Nonnull
import java.util.function.Function
import java.util.function.Predicate

/**
 * @author Andres Almiray
 * @since 2.13.0
 */
@CompileStatic
final class MatchingBindingsExtension {
    @Nonnull
    static  BooleanBinding anyMatch(@Nonnull ObservableList self, @Nonnull Predicate predicate) {
        MatchingBindings.anyMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableList self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.anyMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableList self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.anyMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableList self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.anyMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(@Nonnull ObservableList self, @Nonnull Predicate predicate) {
        MatchingBindings.noneMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableList self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.noneMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableList self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.noneMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableList self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.noneMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(@Nonnull ObservableList self, @Nonnull Predicate predicate) {
        MatchingBindings.allMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableList self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.allMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableList self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.allMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableList self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.allMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(@Nonnull ObservableSet self, @Nonnull Predicate predicate) {
        MatchingBindings.anyMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableSet self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.anyMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableSet self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.anyMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableSet self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.anyMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(@Nonnull ObservableSet self, @Nonnull Predicate predicate) {
        MatchingBindings.noneMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableSet self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.noneMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableSet self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.noneMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableSet self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.noneMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(@Nonnull ObservableSet self, @Nonnull Predicate predicate) {
        MatchingBindings.allMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableSet self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.allMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableSet self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.allMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableSet self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.allMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(@Nonnull ObservableMap self, @Nonnull Predicate predicate) {
        MatchingBindings.anyMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableMap self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.anyMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableMap self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.anyMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding anyMatch(
        @Nonnull ObservableMap self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.anyMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(@Nonnull ObservableMap self, @Nonnull Predicate predicate) {
        MatchingBindings.noneMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableMap self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.noneMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableMap self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.noneMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding noneMatch(
        @Nonnull ObservableMap self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.noneMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(@Nonnull ObservableMap self, @Nonnull Predicate predicate) {
        MatchingBindings.allMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableMap self,
        @Nonnull Function mapper, @Nonnull Predicate predicate) {
        MatchingBindings.allMatch(self, mapper, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableMap self, @Nonnull ObservableValue> predicate) {
        MatchingBindings.allMatch(self, predicate)
    }

    @Nonnull
    static  BooleanBinding allMatch(
        @Nonnull ObservableMap self,
        @Nonnull ObservableValue> mapper,
        @Nonnull ObservableValue> predicate) {
        MatchingBindings.allMatch(self, mapper, predicate)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy