/** * Returns the <tt>double</tt> value of this literal. * * @return The <tt>double</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>double</tt>. */ @Override public double doubleValue() { return getDoubleContent(); }
/** * Returns the <tt>double</tt> value of this literal. * * @return The <tt>double</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>double</tt>. */ @Override public double doubleValue() { return getDoubleContent(); }
/** * Returns the <tt>float</tt> value of this literal. * * @return The <tt>float</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>float</tt>. */ @Override public float floatValue() { return getDoubleContent().floatValue(); }
/** * Returns the <tt>float</tt> value of this literal. * * @return The <tt>float</tt> value of the literal. * @throws NumberFormatException If the literal's label cannot be represented by a <tt>float</tt>. */ @Override public float floatValue() { return getDoubleContent().floatValue(); }
/** * Efficiently serialize a KiWiDoubleLiteral to a DataOutput destination. * * @param out the destination * @param literal the KiWiDoubleLiteral to serialize * @throws IOException */ public static void writeDoubleLiteral(DataOutput out, KiWiDoubleLiteral literal) throws IOException { if(literal == null) { out.writeLong(-1L); } else { out.writeLong(literal.getId()); out.writeDouble(literal.getDoubleContent()); writeURI(out, literal.getType()); out.writeLong(literal.getCreated().getTime()); } }
/** * Efficiently serialize a KiWiDoubleLiteral to a DataOutput destination. * * @param out the destination * @param literal the KiWiDoubleLiteral to serialize * @throws IOException */ public static void writeDoubleLiteral(DataOutput out, KiWiDoubleLiteral literal) throws IOException { if(literal == null) { out.writeLong(-1L); } else { out.writeLong(literal.getId()); out.writeDouble(literal.getDoubleContent()); writeURI(out, literal.getType()); out.writeLong(literal.getCreated().getTime()); } }
insertNode.setLong(1, node.getId()); insertNode.setString(2, doubleLiteral.getContent()); insertNode.setDouble(3, doubleLiteral.getDoubleContent()); if (doubleLiteral.getType() != null) insertNode.setLong(4,doubleLiteral.getType().getId());
insertNode.setLong(1, node.getId()); insertNode.setString(2, doubleLiteral.getContent()); insertNode.setDouble(3, doubleLiteral.getDoubleContent()); if (doubleLiteral.getType() != null) insertNode.setLong(4,doubleLiteral.getType().getId());
} else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), null, null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiBooleanLiteral) { KiWiBooleanLiteral l = (KiWiBooleanLiteral)n;
} else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), null, null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiBooleanLiteral) { KiWiBooleanLiteral l = (KiWiBooleanLiteral)n;
} else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), null, null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiBooleanLiteral) { KiWiBooleanLiteral l = (KiWiBooleanLiteral)n;
} else if(n instanceof KiWiDoubleLiteral) { KiWiDoubleLiteral l = (KiWiDoubleLiteral)n; createNodeList(rowArray, l.getId(), l.getClass(), l.getContent(), l.getDoubleContent(), null, null, null, null, l.getDatatype(), l.getLocale(), l.getCreated()); } else if(n instanceof KiWiBooleanLiteral) { KiWiBooleanLiteral l = (KiWiBooleanLiteral)n;