Made the static utility methods static. "D'oh!"

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8257 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent 1ca81c3355
commit 3f6461a4a8
  1. 14
      engine/src/networking/com/jme3/network/Filters.java

@ -46,7 +46,7 @@ public class Filters
* Creates a filter that returns true for any value in the specified * Creates a filter that returns true for any value in the specified
* list of values and false for all other cases. * list of values and false for all other cases.
*/ */
public <T> Filter<T> in( T... values ) public static <T> Filter<T> in( T... values )
{ {
return in( new HashSet<T>(Arrays.asList(values)) ); return in( new HashSet<T>(Arrays.asList(values)) );
} }
@ -55,7 +55,7 @@ public class Filters
* Creates a filter that returns true for any value in the specified * Creates a filter that returns true for any value in the specified
* collection and false for all other cases. * collection and false for all other cases.
*/ */
public <T> Filter<T> in( Collection<? extends T> collection ) public static <T> Filter<T> in( Collection<? extends T> collection )
{ {
return new InFilter<T>(collection); return new InFilter<T>(collection);
} }
@ -65,7 +65,7 @@ public class Filters
* list of values and false for all other cases. This is the equivalent * list of values and false for all other cases. This is the equivalent
* of calling not(in(values)). * of calling not(in(values)).
*/ */
public <T> Filter<T> notIn( T... values ) public static <T> Filter<T> notIn( T... values )
{ {
return not( in( values ) ); return not( in( values ) );
} }
@ -75,7 +75,7 @@ public class Filters
* collection and false for all other cases. This is the equivalent * collection and false for all other cases. This is the equivalent
* of calling not(in(collection)). * of calling not(in(collection)).
*/ */
public <T> Filter<T> notIn( Collection<? extends T> collection ) public static <T> Filter<T> notIn( Collection<? extends T> collection )
{ {
return not( in( collection ) ); return not( in( collection ) );
} }
@ -84,7 +84,7 @@ public class Filters
* Creates a filter that returns true for inputs that are .equals() * Creates a filter that returns true for inputs that are .equals()
* equivalent to the specified value. * equivalent to the specified value.
*/ */
public <T> Filter<T> equalTo( T value ) public static <T> Filter<T> equalTo( T value )
{ {
return new EqualToFilter<T>(value); return new EqualToFilter<T>(value);
} }
@ -94,7 +94,7 @@ public class Filters
* equivalent to the specified value. This is the equivalent of calling * equivalent to the specified value. This is the equivalent of calling
* not(equalTo(value)). * not(equalTo(value)).
*/ */
public <T> Filter<T> notEqualTo( T value ) public static <T> Filter<T> notEqualTo( T value )
{ {
return not(equalTo(value)); return not(equalTo(value));
} }
@ -103,7 +103,7 @@ public class Filters
* Creates a filter that returns true when the specified delegate filter * Creates a filter that returns true when the specified delegate filter
* returns false, and vice versa. * returns false, and vice versa.
*/ */
public <T> Filter<T> not( Filter<T> f ) public static <T> Filter<T> not( Filter<T> f )
{ {
return new NotFilter<T>(f); return new NotFilter<T>(f);
} }

Loading…
Cancel
Save