projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace some events with Kotlin versions
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
utils
/
IntegerRangePredicate.java
diff --git
a/src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java
b/src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java
index
db6a841
..
aac9594
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java
+++ b/
src/main/java/net/pterodactylus/sone/utils/IntegerRangePredicate.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - IntegerRangePredicate.java - Copyright © 2013 David Roden
+ * Sone - IntegerRangePredicate.java - Copyright © 2013
–2016
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
*
* 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);
}
return (value != null) && (value >= lowerBound) && (value <= upperBound);
}
+ public static IntegerRangePredicate range(int lowerBound, int upperBound) {
+ return new IntegerRangePredicate(lowerBound, upperBound);
+ }
+
}
}