Class LongNode
A Valued Node with a Long value.
Implements
System.IEquatable<BaseLiteralNode>
System.IComparable<BaseLiteralNode>
System.IEquatable<LiteralNode>
System.IComparable<LiteralNode>
System.IComparable<INode>
System.IComparable<IBlankNode>
System.IComparable<IGraphLiteralNode>
System.IComparable<ILiteralNode>
System.IComparable<IUriNode>
System.IComparable<IVariableNode>
System.IEquatable<INode>
System.IEquatable<IBlankNode>
System.IEquatable<IGraphLiteralNode>
System.IEquatable<ILiteralNode>
System.IEquatable<IUriNode>
System.IEquatable<IVariableNode>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Nodes
Assembly: dotNetRDF.dll
Syntax
public class LongNode : NumericNode, ILiteralNode, IEquatable<BaseLiteralNode>, IComparable<BaseLiteralNode>, IEquatable<LiteralNode>, IComparable<LiteralNode>, IValuedNode, INode, IComparable<INode>, IComparable<IBlankNode>, IComparable<IGraphLiteralNode>, IComparable<ILiteralNode>, IComparable<IUriNode>, IComparable<IVariableNode>, IEquatable<INode>, IEquatable<IBlankNode>, IEquatable<IGraphLiteralNode>, IEquatable<ILiteralNode>, IEquatable<IUriNode>, IEquatable<IVariableNode>, ISerializable, IXmlSerializable
Constructors
| Improve this Doc View SourceLongNode(IGraph, Int64)
Creates a new long valued node.
Declaration
public LongNode(IGraph g, long value)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Int64 | value | Long value. |
LongNode(IGraph, Int64, String)
Creates a new long valued node.
Declaration
public LongNode(IGraph g, long value, string lexicalValue)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Int64 | value | Long value. |
System.String | lexicalValue | Lexical Value. |
LongNode(IGraph, Int64, String, Uri)
Creates a new long valued node.
Declaration
public LongNode(IGraph g, long value, string lexicalValue, Uri datatype)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph the node belongs to. |
System.Int64 | value | Long value. |
System.String | lexicalValue | Lexical Value. |
System.Uri | datatype | Datatype URI. |
Methods
| Improve this Doc View SourceAsDecimal()
Gets the decimal value of the long.
Declaration
public override decimal AsDecimal()
Returns
Type | Description |
---|---|
System.Decimal |
Overrides
| Improve this Doc View SourceAsDouble()
Gets the double value of the long.
Declaration
public override double AsDouble()
Returns
Type | Description |
---|---|
System.Double |
Overrides
| Improve this Doc View SourceAsFloat()
Gets the float value of the long.
Declaration
public override float AsFloat()
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceAsInteger()
Gets the long value.
Declaration
public override long AsInteger()
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Implements
System.IEquatable<T>
System.IComparable<T>
System.IEquatable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.IEquatable<T>
System.Runtime.Serialization.ISerializable
System.Xml.Serialization.IXmlSerializable