# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 module Java::JavaLang::Iterable def first it = self.iterator return it.next if it.has_next nil end unless self.method_defined?(:first) end