Deprecate Predicate
This commit is contained in:
parent
4c530c1f7c
commit
65b635718f
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.massivecraft.massivecore.predicate;
|
||||
|
||||
@Deprecated
|
||||
public class PredicateNot<T> implements Predicate<T>
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
|
Loading…
Reference in New Issue
Block a user