org.openrdf.sail.memory.model
Class BooleanMemLiteral

java.lang.Object
  extended by org.openrdf.model.impl.LiteralImpl
      extended by org.openrdf.sail.memory.model.MemLiteral
          extended by org.openrdf.sail.memory.model.BooleanMemLiteral
All Implemented Interfaces:
Serializable, Literal, Value, MemValue

public class BooleanMemLiteral
extends MemLiteral

An extension of MemLiteral that stores a boolean value to avoid parsing.

Author:
David Huynh, Arjohn Kampman
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.openrdf.sail.memory.model.MemValue
EMPTY_LIST
 
Constructor Summary
BooleanMemLiteral(Object creator, boolean b)
           
BooleanMemLiteral(Object creator, String label, boolean b)
           
 
Method Summary
 boolean booleanValue()
          Returns the boolean value of this literal.
 
Methods inherited from class org.openrdf.sail.memory.model.MemLiteral
addObjectStatement, getCreator, getObjectStatementCount, getObjectStatementList, removeObjectStatement
 
Methods inherited from class org.openrdf.model.impl.LiteralImpl
byteValue, calendarValue, decimalValue, doubleValue, equals, floatValue, getDatatype, getLabel, getLanguage, hashCode, integerValue, intValue, longValue, shortValue, stringValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openrdf.model.Value
stringValue
 

Constructor Detail

BooleanMemLiteral

public BooleanMemLiteral(Object creator,
                         boolean b)

BooleanMemLiteral

public BooleanMemLiteral(Object creator,
                         String label,
                         boolean b)
Method Detail

booleanValue

public boolean booleanValue()
Description copied from interface: Literal
Returns the boolean value of this literal.

Specified by:
booleanValue in interface Literal
Overrides:
booleanValue in class LiteralImpl
Returns:
The long value of the literal.


Copyright © 2001-2008 Aduna. All Rights Reserved.