Package ru.iopump.qa.support.api
Interface WithValue<T>
-
public interface WithValue<T>This object has some value and can give it. In common situation it's aStringbut it may be any otherObject. And this object has special methodhasValue(T)to check corresponding with this value and candidate value with special logic if at least one of these objects isString.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TgetValue()This object has some value and can give it.default booleanhasValue(T candidateValue)Smart check value if equals togetValue().
-
-
-
Method Detail
-
getValue
@Nullable T getValue()
This object has some value and can give it. In common situation it's aStringbut it may be any otherObject. And this object has special methodhasValue(T)to check corresponding with this value and candidate value with special logic if at least one of these objects isString.- Returns:
- Objects value.
-
hasValue
default boolean hasValue(@Nullable T candidateValue)Smart check value if equals togetValue(). For string useStringUtils.equalsAnyIgnoreCase(java.lang.CharSequence, java.lang.CharSequence...)- Parameters:
candidateValue- Candidate object orString- Returns:
- true - candidateValue corresponds to
getValue().
-
-