Class: RDF::Literal::Long

Inherits:
Integer show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb

Overview

long is derived from integer by setting the value of maxInclusive to be 9223372036854775807 and minInclusive to be -9223372036854775808.

The base type of long is integer.

Direct Known Subclasses

Int

Constant Summary collapse

DATATYPE =
RDF::XSD.long

Instance Method Summary collapse

Methods inherited from Integer

#to_sxp

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-xsd-e532a0ab7189/lib/rdf/xsd/integer.rb', line 64

def valid?
  super && @object >= -9223372036854775808 && @object <= 9223372036854775807
end