Class: RDF::Literal::Long

Inherits:
Integer
  • Object
show all
Defined in:
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

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


64
65
66
# File 'lib/rdf/xsd/integer.rb', line 64

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