Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.block.factory

public final Class StringPredicates2

extends Object
Class Inheritance
Imports
org.eclipse.collections.impl.utility.StringIterate

The StringPredicates2 class is a factory that produces Predicate2 instances that work with Strings.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final StringPredicates2.ContainsString
private static final StringPredicates2.EndsWith
private static final StringPredicates2.EqualsIgnoreCase
private static final StringPredicates2.MatchesRegex
private static final StringPredicates2.NotContainsString
private static final StringPredicates2.NotEndsWith
private static final StringPredicates2.NotEqualsIgnoreCase
private static final StringPredicates2.NotStartsWith
private static final StringPredicates2.StartsWith

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Predicates2<String, String>
contains()

Returns true if a String specified on the predicate is contained within a String passed to the accept method.

public static Predicates2<String, String>
endsWith()

Returns true if a String passed to the accept method ends with the string specified on the predicate.

public static Predicates2<String, String>
public static Predicates2<String, String>
public static Predicates2<String, String>
notContains()

Returns true if a String specified on the predicate is contained within a String passed to the accept method.

public static Predicates2<String, String>
notEndsWith()

Returns false if a String passed to the accept method ends with the string specified on the predicate.

public static Predicates2<String, String>
public static Predicates2<String, String>
notStartsWith()

Returns false if a String passed to the accept method starts with the string specified on the predicate.

public static Predicates2<String, String>
startsWith()

Returns true if a String passed to the accept method starts with the string specified on the predicate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONTAINS_STRINGback to summary
private static final StringPredicates2.ContainsString CONTAINS_STRING
ENDS_WITHback to summary
private static final StringPredicates2.EndsWith ENDS_WITH
EQUALS_IGNORE_CASEback to summary
private static final StringPredicates2.EqualsIgnoreCase EQUALS_IGNORE_CASE
MATCHES_REGEXback to summary
private static final StringPredicates2.MatchesRegex MATCHES_REGEX
NOT_CONTAINS_STRINGback to summary
private static final StringPredicates2.NotContainsString NOT_CONTAINS_STRING
NOT_ENDS_WITHback to summary
private static final StringPredicates2.NotEndsWith NOT_ENDS_WITH
NOT_EQUALS_IGNORE_CASEback to summary
private static final StringPredicates2.NotEqualsIgnoreCase NOT_EQUALS_IGNORE_CASE
NOT_STARTS_WITHback to summary
private static final StringPredicates2.NotStartsWith NOT_STARTS_WITH
STARTS_WITHback to summary
private static final StringPredicates2.StartsWith STARTS_WITH

Constructor Detail

StringPredicates2back to summary
private StringPredicates2()

Method Detail

containsback to summary
public static Predicates2<String, String> contains()

Returns true if a String specified on the predicate is contained within a String passed to the accept method.

endsWithback to summary
public static Predicates2<String, String> endsWith()

Returns true if a String passed to the accept method ends with the string specified on the predicate.

equalsIgnoreCaseback to summary
public static Predicates2<String, String> equalsIgnoreCase()
matchesback to summary
public static Predicates2<String, String> matches()
notContainsback to summary
public static Predicates2<String, String> notContains()

Returns true if a String specified on the predicate is contained within a String passed to the accept method.

Since
5.0
notEndsWithback to summary
public static Predicates2<String, String> notEndsWith()

Returns false if a String passed to the accept method ends with the string specified on the predicate.

Since
5.0
notEqualsIgnoreCaseback to summary
public static Predicates2<String, String> notEqualsIgnoreCase()
Since
5.0
notStartsWithback to summary
public static Predicates2<String, String> notStartsWith()

Returns false if a String passed to the accept method starts with the string specified on the predicate.

Since
5.0
startsWithback to summary
public static Predicates2<String, String> startsWith()

Returns true if a String passed to the accept method starts with the string specified on the predicate.

org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.ContainsString

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

ContainsStringback to summary
private ContainsString()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.EndsWith

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

EndsWithback to summary
private EndsWith()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.EqualsIgnoreCase

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

EqualsIgnoreCaseback to summary
private EqualsIgnoreCase()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.MatchesRegex

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

MatchesRegexback to summary
private MatchesRegex()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.NotContainsString

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

NotContainsStringback to summary
private NotContainsString()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.NotEndsWith

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

NotEndsWithback to summary
private NotEndsWith()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.NotEqualsIgnoreCase

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

NotEqualsIgnoreCaseback to summary
private NotEqualsIgnoreCase()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.NotStartsWith

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

NotStartsWithback to summary
private NotStartsWith()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.eclipse.collections.impl.block.factory back to summary

private final Class StringPredicates2.StartsWith

extends Predicates2<String, String>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.eclipse.collections.impl.block.factory.Predicates2:
alwaysFalsealwaysTrueandandattributeEqualattributeGreaterThanattributeGreaterThanOrEqualToattributeInattributeLessThanattributeLessThanOrEqualToattributeNotEqualattributeNotInequalgreaterThangreaterThanOrEqualToininstanceOfisNulllessThanlessThanOrEqualTonotnotEqualnotInnotInstanceOfnotNullnotSameAsororsameAsthrowingthrowing

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.block.factory.Predicates2.serialVersionUID.

Constructor Detail

StartsWithback to summary
private StartsWith()

Method Detail

acceptback to summary
public boolean accept(String each, String parameter)

Implements org.eclipse.collections.api.block.predicate.Predicate2.accept.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override