I'm just starting to use the FunctionalJava library and wanted to make use of the immutable TreeMap. However I can't figure out how to create an empty one to start with when using a user defined class or interface.
fj.data.TreeMap<IAddress, Optional<ScanNode>> nodes = TreeMap.empty(Ord<IAddress>);
All the examples use predefined types like Ord.stringOrd. I'm totally not understanding how to create the proper Ord<IAddress>.
Could someone explain how to do this?