Top Description Fields Constructors Methods
org.easymock.bytebuddy.matcher

public Class StringSetMatcher

extends ElementMatcher.Junction.ForNonNullValues<String>
Class Inheritance
Annotations
@Enhance
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, java.util.Set

An element matcher which checks if a string is in a set of strings.

Field Summary

Modifier and TypeField and Description
private final Set<String>
values

The values to check against.

Constructor Summary

AccessConstructor and Description
public
StringSetMatcher(Set<String>
The values to check against.
values
)

Creates a new string set matcher.

Method Summary

Modifier and TypeMethod and Description
protected boolean
doMatch(String
The instance to be matched.
target
)

Implements abstract org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Matches the supplied value if it was found not to be null.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues:
matches

Field Detail

valuesback to summary
private final Set<String> values

The values to check against.

Constructor Detail

StringSetMatcherback to summary
public StringSetMatcher(Set<String> values)

Creates a new string set matcher.

Parameters
values:Set<String>

The values to check against.

Method Detail

doMatchback to summary
protected boolean doMatch(String target)

Implements abstract org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Doc from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Matches the supplied value if it was found not to be null.

Parameters
target:String

The instance to be matched.

Returns:boolean

true if the given element is matched by this matcher or false otherwise.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override