Modifier and Type | Class | Description |
---|---|---|
class |
MultiFnWithHierarchy |
An implementation of
MultiFn that is (mostly)
backwards compatible with clojure.lang.MultiFn . |
class |
MultiFnWoutHierarchy |
An implementation of
MultiFn that optimizes for pure
Class-based method definition and lookup. |
Modifier and Type | Method | Description |
---|---|---|
MultiFn |
MultiFn.addMethod(java.lang.Object x,
clojure.lang.IFn f) |
Make
f the defined method for dispatch value
x . |
MultiFn |
MultiFnWithHierarchy.addMethod(java.lang.Object x,
clojure.lang.IFn method) |
|
MultiFn |
MultiFnWoutHierarchy.addMethod(java.lang.Object x,
clojure.lang.IFn method) |
|
MultiFn |
MultiFn.preferMethod(java.lang.Object x,
java.lang.Object y) |
Prefer a method defined for dispatch value
x
to one defined for y . |
MultiFn |
MultiFnWithHierarchy.preferMethod(java.lang.Object x,
java.lang.Object y) |
|
MultiFn |
MultiFnWoutHierarchy.preferMethod(java.lang.Object x,
java.lang.Object y) |
|
MultiFn |
MultiFn.removeMethod(java.lang.Object x) |
Removes the defined method for dispatch value
x , if there is one. |
MultiFn |
MultiFnWithHierarchy.removeMethod(java.lang.Object x) |
|
MultiFn |
MultiFnWoutHierarchy.removeMethod(java.lang.Object x) |
|
MultiFn |
MultiFn.reset() |
Clear the
MultiFn , removing all defined
methods and preferences, and emptying the cache. |
MultiFn |
MultiFnWithHierarchy.reset() |
|
MultiFn |
MultiFnWoutHierarchy.reset() |
Copyright © 2017. All rights reserved.