public override AnyValue Value(int offset) { return(Values.LongValue(LongValue(offset))); }
private static Test ShouldMatch(long propertyValue, object value) { return(new Test(Values.LongValue(propertyValue), value, true)); }
private void InitializeInstanceFields() { _scalars = Arrays.asList(ShouldGivePublic(Values.ByteValue(( sbyte )1), ( sbyte )1), ShouldGivePublic(Values.ShortValue(( short )2), ( short )2), ShouldGivePublic(Values.IntValue(3), 3), ShouldGivePublic(Values.LongValue(4L), 4L), ShouldGivePublic(Values.FloatValue(5.0f), 5.0f), ShouldGivePublic(Values.DoubleValue(6.0), 6.0), ShouldGivePublic(Values.BooleanValue(false), false), ShouldGivePublic(Values.CharValue('a'), 'a'), ShouldGivePublic(Values.StringValue("b"), "b")); }
public override LongValue DividedBy(long b) { return(Values.LongValue(LongValue() / b)); }
/// <summary> /// In contrast to <seealso cref="get(TemporalUnit)"/>, this method supports more units, namely: /// /// years, hours, minutes, milliseconds, microseconds, /// monthsOfYear, minutesOfHour, secondsOfMinute, millisecondsOfSecond, microsecondsOfSecond, nanosecondsOfSecond /// </summary> public LongValue Get(string fieldName) { long val = DurationFields.fromName(fieldName).asTimeStamp(_months, _days, _seconds, _nanos); return(Values.LongValue(val)); }