File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/spacious_team/table_wrapper/api Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ public final class StringPrefixPredicate {
3737 return PredicateOnObjectWrapper .of (predicate );
3838 }
3939
40- public static Predicate < CharSequence > ignoreCaseStringPrefixPredicate (CharSequence prefix ) {
41- return new IgnoreCaseStringPrefixPredicate (prefix );
40+ public static < T extends CharSequence > Predicate < T > ignoreCaseStringPrefixPredicate (CharSequence prefix ) {
41+ return new IgnoreCaseStringPrefixPredicate <> (prefix );
4242 }
4343
4444
@@ -57,15 +57,15 @@ public boolean test(@Nullable Object o) {
5757
5858 @ ToString
5959 @ EqualsAndHashCode
60- static final class IgnoreCaseStringPrefixPredicate implements Predicate <CharSequence > {
60+ static final class IgnoreCaseStringPrefixPredicate < T extends CharSequence > implements Predicate <T > {
6161 private final String prefix ;
6262
6363 private IgnoreCaseStringPrefixPredicate (CharSequence prefix ) {
6464 this .prefix = prefix .toString ().strip ();
6565 }
6666
6767 @ Override
68- public boolean test (CharSequence cs ) {
68+ public boolean test (T cs ) {
6969 int nonWhitespaceIndex = getIndexOfNonWhitespace (cs );
7070 if (nonWhitespaceIndex == -1 ) {
7171 return false ;
You can’t perform that action at this time.
0 commit comments