Update years in copyright line
[Sone.git] / src / main / java / net / pterodactylus / sone / utils / IntegerRangePredicate.java
index db6a841..a0470c1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - IntegerRangePredicate.java - Copyright © 2013 David Roden
+ * Sone - IntegerRangePredicate.java - Copyright © 2013–2015 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -59,4 +59,8 @@ public class IntegerRangePredicate implements Predicate<Integer> {
                return (value != null) && (value >= lowerBound) && (value <= upperBound);
        }
 
+       public static IntegerRangePredicate range(int lowerBound, int upperBound) {
+               return new IntegerRangePredicate(lowerBound, upperBound);
+       }
+
 }