Examples of shortValue()


Examples of org.elasticsearch.common.xcontent.XContentParser.shortValue()

                    // no value
                    return null;
                }
                value = objValue;
            } else {
                value = (byte) parser.shortValue();
                if (context.includeInAll(includeInAll)) {
                    context.allEntries().addText(names.fullName(), parser.text(), boost);
                }
            }
        }
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.shortValue()

                    if (token == XContentParser.Token.FIELD_NAME) {
                        currentFieldName = parser.currentName();
                    } else {
                        if ("value".equals(currentFieldName) || "_value".equals(currentFieldName)) {
                            if (parser.currentToken() != XContentParser.Token.VALUE_NULL) {
                                objValue = parser.shortValue();
                            }
                        } else if ("boost".equals(currentFieldName) || "_boost".equals(currentFieldName)) {
                            boost = parser.floatValue();
                        }
                    }
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.shortValue()

                    // no value
                    return null;
                }
                value = objValue;
            } else {
                value = parser.shortValue();
                if (context.includeInAll(includeInAll)) {
                    context.allEntries().addText(names.fullName(), parser.text(), boost);
                }
            }
        }
View Full Code Here

Examples of org.jamesii.core.math.complex.Complex.shortValue()

  }

  /** Tests the {@link Complex#shortValue()} method. */
  public void testShortValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
    assertEquals(c.shortValue(), (short) c.getReal());
  }
}
View Full Code Here

Examples of org.openrdf.model.Literal.shortValue()

                } else if (type.equals(XMLSchema.BYTE)) {
                    return l.byteValue();
                } else if (type.equals(XMLSchema.BOOLEAN)) {
                    return l.booleanValue();
                } else if (type.equals(XMLSchema.SHORT)) {
                    return l.shortValue();
                } else if (type.equals(XMLSchema.FLOAT)) {
                    return l.floatValue();
                } else if (type.equals(XMLSchema.DOUBLE)) {
                    return l.doubleValue();
                } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.