private static boolean sample(Collection<Tuple> anchors) {
        if (Double.compare(sampleRate, 1.0d) >= 0)
            return true;
        for (Tuple t : anchors) {
            if (sample(t.getMessageId().getAnchors())) {
                return true;
            }
        }
        return false;
    }
private static boolean sample ( Collection < Tuple > anchors ) { if ( Double . compare ( sampleRate , 1.0d ) >= 0 ) return true ; for ( Tuple t : anchors ) { if ( sample ( t . getMessageId ( ) . getAnchors ( ) ) ) { return true ; } } return false ; }
one of the tuples has been chosen, the logs should be output