Class CallerContextSplitter

    • Constructor Detail

      • CallerContextSplitter

        public CallerContextSplitter​(long[] ids,
                                     String condition)
        Create a prototype (factory) splitter for the given set of ids and condition.
    • Method Detail

      • valid

        @EnsuresNonNullIf(result=true,
                          expression="caller_varinfo")
        public boolean valid()
        Description copied from class: Splitter
        Returns true or false according to whether this was instantiated correctly and test(ValueTuple) can be called without error. An alternate design would have Splitter.instantiateSplitter(Ppt) check this, but it's a bit easier on implementers of subclasses of Splitter for the work to be done (in just one place) by the caller.
        Specified by:
        valid in class Splitter
      • test

        @RequiresNonNull("caller_varinfo")
        public boolean test​(ValueTuple vt)
        Description copied from class: Splitter
        Returns true or false according to whether the values in the specified ValueTuple satisfy the condition represented by this Splitter. Requires that valid() returns true.
        Specified by:
        test in class Splitter