F - whatever kind of thing you'd like to map to. Generally this
will be some class or interface representing a function.public static interface Protocol.Builder<F>
Protocols.builder(String) to obtain new instances.| Modifier and Type | Method and Description |
|---|---|
Protocol<F> |
build()
Build and return the
Protocol described by the
preceding calls made on this Builder. |
Protocol.Builder<F> |
put(Class selfClass,
F fn)
Associate the
F fn with the class selfClass. |
Protocol.Builder<F> put(Class selfClass, F fn)
F fn with the class selfClass.selfClass - represents a class or interface or is
null.fn - the value to associate with selfClass.
fn must not be null.IllegalStateException - if build() was
previously called on this Builder.Protocol<F> build()
Protocol described by the
preceding calls made on this Builder. Calling build()
invalidates this builder.IllegalStateException - if build() was
previously called on this Builder.Copyright © 2020. All rights reserved.