Deprecate Predicate

This commit is contained in:
Magnus Ulf 2019-04-19 11:19:40 +02:00
parent 4c530c1f7c
commit 65b635718f
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,13 @@
package com.massivecraft.massivecore.predicate;
public interface Predicate<T>
@Deprecated
public interface Predicate<T> extends java.util.function.Predicate<T>
{
boolean apply(T type);
@Override
default boolean test(T type)
{
return this.apply(type);
}
}

View File

@ -5,6 +5,7 @@ import com.google.common.collect.ImmutableList;
import java.util.Collection;
import java.util.List;
@Deprecated
public class PredicateAnd<T> implements Predicate<T>
{
// -------------------------------------------- //

View File

@ -1,5 +1,6 @@
package com.massivecraft.massivecore.predicate;
@Deprecated
public class PredicateNot<T> implements Predicate<T>
{
// -------------------------------------------- //