Class: Saxon::XDM::EmptySequence
- Inherits:
-
Object
- Object
- Saxon::XDM::EmptySequence
- Includes:
- SequenceLike
- Defined in:
- lib/saxon/xdm/empty_sequence.rb
Overview
Represents the empty sequence in XDM
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
- #sequence_enum ⇒ Object
- #sequence_size ⇒ Object
- #to_java ⇒ Object
Methods included from SequenceLike
Class Method Details
.create ⇒ Object
8 9 10 |
# File 'lib/saxon/xdm/empty_sequence.rb', line 8 def self.create @instance ||= new end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
22 23 24 |
# File 'lib/saxon/xdm/empty_sequence.rb', line 22 def ==(other) other.class == self.class end |
#hash ⇒ Object
28 29 30 |
# File 'lib/saxon/xdm/empty_sequence.rb', line 28 def hash [].hash end |
#sequence_enum ⇒ Object
14 15 16 |
# File 'lib/saxon/xdm/empty_sequence.rb', line 14 def sequence_enum [].to_enum end |
#sequence_size ⇒ Object
18 19 20 |
# File 'lib/saxon/xdm/empty_sequence.rb', line 18 def sequence_size 0 end |
#to_java ⇒ Object
32 33 34 |
# File 'lib/saxon/xdm/empty_sequence.rb', line 32 def to_java @s9_xdm_empty_sequence ||= Saxon::S9API::XdmEmptySequence.getInstance end |