Class OtherSpellingIn
java.lang.Object
org.ek9lang.compiler.support.operators.OtherSpellingIn
- All Implemented Interfaces:
BiFunction<MethodSymbol, Iterable<MethodSymbol>, Optional<MethodSymbol>>
public final class OtherSpellingIn
extends Object
implements BiFunction<MethodSymbol, Iterable<MethodSymbol>, Optional<MethodSymbol>>
THE first of several operators that is a different spelling of the same runtime operator as another (D59,
SameRuntimeOperator). Hold one and apply it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(MethodSymbol operator, Iterable<MethodSymbol> candidates) The first ofcandidatesthat is a different spelling of the same runtime operator asoperator.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiFunction
andThen
-
Constructor Details
-
OtherSpellingIn
public OtherSpellingIn()
-
-
Method Details
-
apply
The first ofcandidatesthat is a different spelling of the same runtime operator asoperator.- Specified by:
applyin interfaceBiFunction<MethodSymbol, Iterable<MethodSymbol>, Optional<MethodSymbol>>- Parameters:
operator- the operator asked aboutcandidates- the operators to look through- Returns:
- the other spelling, if any
-