@Override protected Long getValue(com.google.datastore.v1.Value from) { return from.getIntegerValue(); }
case 2: hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntegerValue()); break; case 3:
break; case 2: result = result && (getIntegerValue() == other.getIntegerValue()); break; case 3:
setIntegerValue(other.getIntegerValue()); break;
@Override protected Long getValue(com.google.datastore.v1.Value from) { return from.getIntegerValue(); }
/** * Return the value as an integer. * * @return the value. * @throws IllegalArgumentException if {@code Value} is not an integer. */ public long getInteger() { if (!isInteger()) { throw new IllegalArgumentException("Value does not contain an integer."); } return value.getIntegerValue(); }
/** * @return the long contained in value * @throws IllegalArgumentException if the value does not contain a long. */ public static long getLong(Value value) { if (value.getValueTypeCase() != ValueTypeCase.INTEGER_VALUE) { throw new IllegalArgumentException("Value does not contain an integer."); } return value.getIntegerValue(); }
/** * @return the long contained in value * @throws IllegalArgumentException if the value does not contain a long. */ public static long getLong(Value value) { if (value.getValueTypeCase() != ValueTypeCase.INTEGER_VALUE) { throw new IllegalArgumentException("Value does not contain an integer."); } return value.getIntegerValue(); }
/** * @return the timestamp in microseconds contained in value * @throws IllegalArgumentException if the value does not contain a timestamp. */ public static long getTimestamp(Value value) { if (value.getMeaning() == 18 && value.getValueTypeCase() == ValueTypeCase.INTEGER_VALUE) { return value.getIntegerValue(); } else if (value.getValueTypeCase() == ValueTypeCase.TIMESTAMP_VALUE) { return toMicroseconds(value.getTimestampValue()); } throw new IllegalArgumentException("Value does not contain a timestamp."); }
/** * @return the timestamp in microseconds contained in value * @throws IllegalArgumentException if the value does not contain a timestamp. */ public static long getTimestamp(Value value) { if (value.getMeaning() == 18 && value.getValueTypeCase() == ValueTypeCase.INTEGER_VALUE) { return value.getIntegerValue(); } else if (value.getValueTypeCase() == ValueTypeCase.TIMESTAMP_VALUE) { return toMicroseconds(value.getTimestampValue()); } throw new IllegalArgumentException("Value does not contain a timestamp."); }
return getDate().toString(); case INTEGER_VALUE: return String.valueOf(value.getIntegerValue()); case DOUBLE_VALUE: return String.valueOf(value.getDoubleValue());
case 2: hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIntegerValue()); break; case 3:
hash = (37 * hash) + INTEGER_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIntegerValue()); break; case 3:
return entity.getProperties().get("entity_bytes").getIntegerValue();
Long answer = entity.getProperties().get("answer").getIntegerValue(); System.out.println(question); String result = System.console().readLine("> ");
break; case 2: result = result && (getIntegerValue() == other.getIntegerValue()); break; case 3:
break; case 2: result = result && (getIntegerValue() == other.getIntegerValue()); break; case 3:
setIntegerValue(other.getIntegerValue()); break;
setIntegerValue(other.getIntegerValue()); break;