Sha256: 03851fcbcb6cecc73c9cc1355e9600ee6103fa4dbe997e0664dac446cc38264c
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
module Pacer::Pipes class IsEmptyPipe < RubyPipe def initialize super @raise = false end def processNextStart raise Pacer::NoSuchElementException if @raise @starts.next @raise = true rescue NativeException => e if e.cause.getClass == NoSuchElementException.getClass # This is the only case where we return true. # The only time we get here is if the first call to next # has no results. true else raise e end else raise Pacer::NoSuchElementException end def reset @raise = false super() end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pacer-0.9.1.1-java | lib/pacer/pipe/is_empty_pipe.rb |