Package com.nearform.patrun

Interface Summary
Customiser Interface to be implemented if you need to customise the add / find or remove behaviour of a Patrun object
Modifier An interface for a custom modifier used to customise the find and remove methods
Printer A simple interface to that can be passed ionto the toString method of patrun to allow data objects to be ciustom formatted when being generated into a String
 

Class Summary
Patrun Package patrun is a fast pattern matcher on Go map properties For a full guide visit https://github.com/colmharte/patrun-java Need to pick out an object based on a subset of its properties? Say you've got: { x: 1 } -> A { x: 1, y: 1 } -> B { x: 1, y: 2 } -> C Then patrun can give you the following results: { x: 1 } -> A { x: 2 } -> no match { x: 1, y: 1 } -> B { x: 1, y: 2 } -> C { x: 2, y: 2 } -> no match { y: 1 } -> no match It's basically _query-by-example_ for property sets.
Pattern Represents a data Node within the patrun decision tree
 



Copyright © 2015. All rights reserved.