needle
needle copied to clipboard
Subdivide Pattern Interface
The pattern interface supports three methods (matches, containedIn, find). When compiling to a Java class, each of these methods plays a role in the size of the class. Since the compiled class is often large, it might be desirable to allow compiling to a class which only supports match, or only supports match/containedIn. Probably supporting all 5 non-empty combinations of methods would be tedious and confusing.
Not 5, 7. Sheesh.