Module: Java::JavaLang::Iterable

Defined in:
lib/rtm/javatmapi/ext/java_util_set.rb

Overview

Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. License: Apache License, Version 2.0

Instance Method Summary collapse

Instance Method Details

#firstObject



5
6
7
8
9
# File 'lib/rtm/javatmapi/ext/java_util_set.rb', line 5

def first
  it = self.iterator
  return it.next if it.has_next
  nil
end