From: David ‘Bombe’ Roden Date: Tue, 30 Sep 2014 05:11:36 +0000 (+0200) Subject: Add static method to create range. X-Git-Tag: 0.9-rc1^2~3^2~86 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a4e39098c822302a52142aca3245fa535b29c942;p=Sone.git Add static method to create range. --- 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); + } + }