From a4e39098c822302a52142aca3245fa535b29c942 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 30 Sep 2014 07:11:36 +0200 Subject: [PATCH] Add static method to create range. --- src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java b/src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java index db6a841..a4022de 100644 --- a/src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java +++ b/src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java @@ -59,4 +59,8 @@ public class IntegerRangePredicate implements Predicate { return (value != null) && (value >= lowerBound) && (value <= upperBound); } + public static IntegerRangePredicate range(int lowerBound, int upperBound) { + return new IntegerRangePredicate(lowerBound, upperBound); + } + } -- 2.7.4