Package dev.getelements.elements.sdk
Class TypeRequest.Literal
java.lang.Object
dev.getelements.elements.sdk.TypeRequest.Literal
- All Implemented Interfaces:
TypeRequest,BiPredicate<ElementTypeRequest,String>
- Enclosing interface:
TypeRequest
The default
TypeRequest implementation. Permits a class whose binary name exactly matches any of the
names listed in ElementTypeRequest.value(). This is the default value of
ElementTypeRequest.request(), so an Element that only needs to permit a fixed set of known types
can do so purely through the annotation without writing any code:
@ElementTypeRequest(value = {"com.example.shared.Foo", "com.example.shared.Bar"})
package com.example.myelement;
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.sdk.TypeRequest
TypeRequest.Literal, TypeRequest.Regex, TypeRequest.Wildcard -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Constructor Details
-
Literal
public Literal()
-
-
Method Details
-
test
- Specified by:
testin interfaceBiPredicate<ElementTypeRequest,String>
-