Home
last modified time | relevance | path

Searched refs:OptionalDouble (Results 1 – 25 of 53) sorted by relevance

123

/external/truth/extensions/java8/src/test/java/com/google/common/truth/
DOptionalDoubleSubjectTest.java23 import java.util.OptionalDouble;
44 assertThat(OptionalDouble.of(1337.0)).isPresent(); in isPresent()
50 expectFailure(whenTesting -> whenTesting.that(OptionalDouble.empty()).isPresent()); in isPresentFailing()
56 assertThat(OptionalDouble.empty()).isEmpty(); in isEmpty()
62 expectFailure(whenTesting -> whenTesting.that(OptionalDouble.of(1337.0)).isEmpty()); in isEmptyFailing()
75 assertThat(OptionalDouble.of(1337.0)).hasValue(1337.0); in hasValue()
81 expectFailure(whenTesting -> whenTesting.that(OptionalDouble.empty()).hasValue(1337.0)); in hasValue_FailingWithEmpty()
92 expectFailure(whenTesting -> whenTesting.that(OptionalDouble.of(1337.0)).hasValue(42.0)); in hasValue_FailingWithWrongValue()
97 ExpectFailure.SimpleSubjectBuilderCallback<OptionalDoubleSubject, OptionalDouble> in expectFailure()
/external/truth/extensions/java8/src/main/java/com/google/common/truth/
DOptionalDoubleSubject.java21 import java.util.OptionalDouble;
31 private final OptionalDouble actual;
35 @Nullable OptionalDouble subject, in OptionalDoubleSubject()
81 public static Subject.Factory<OptionalDoubleSubject, OptionalDouble> optionalDoubles() { in optionalDoubles()
DTruth8.java24 import java.util.OptionalDouble;
59 public static OptionalDoubleSubject assertThat(@Nullable OptionalDouble target) { in assertThat()
/external/golang-protobuf/proto/
Dequal_test.go129 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(1)},
130 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(2)},
135 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(float64(math.NaN()))},
136 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(0)},
194 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(2)},
195 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(2)},
202 x: &testpb.TestAllTypes{OptionalDouble: proto.Float64(float64(math.NaN()))},
203 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(float64(math.NaN()))},
259 y: &testpb.TestAllTypes{OptionalDouble: proto.Float64(0)},
310 y: &test3pb.TestAllTypes{OptionalDouble: proto.Float64(0)},
/external/guava/guava/src/com/google/common/base/
DMoreObjects.java25 import java.util.OptionalDouble;
365 } else if (value instanceof OptionalDouble) { in isEmpty()
366 return !((OptionalDouble) value).isPresent(); in isEmpty()
/external/golang-protobuf/internal/testprotos/fieldtrack/
Dfieldtrack.pb.go37OptionalDouble *float64 `protobuf:"fixed64,12,opt,name=o… member
215 if x != nil && x.OptionalDouble != nil {
216 return *x.OptionalDouble
/external/guava/guava/src/com/google/common/collect/
DStreams.java32 import java.util.OptionalDouble;
150 public static DoubleStream stream(OptionalDouble optional) { in stream()
962 public static OptionalDouble findLast(DoubleStream stream) {
965 return boxedLast.map(OptionalDouble::of).orElseGet(OptionalDouble::empty);
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs431 public double OptionalDouble { property in ProtobufUnittest.TestProto3Optional
650 …bufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) r… in Equals()
678 …) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble); in GetHashCode()
752 output.WriteDouble(OptionalDouble); in WriteTo()
846 output.WriteDouble(OptionalDouble); in IBufferMessage.InternalWriteTo()
1003 OptionalDouble = other.OptionalDouble; in MergeFrom()
1098 OptionalDouble = input.ReadDouble(); in MergeFrom()
1203 OptionalDouble = input.ReadDouble(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto3.cs625 public double OptionalDouble { property in ProtobufTestMessages.Proto3.TestAllTypesProto3
2308 …bufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) r… in Equals()
2467 …if (OptionalDouble != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Get… in GetHashCode()
2670 if (OptionalDouble != 0D) { in WriteTo()
2672 output.WriteDouble(OptionalDouble); in WriteTo()
3023 if (OptionalDouble != 0D) { in IBufferMessage.InternalWriteTo()
3025 output.WriteDouble(OptionalDouble); in IBufferMessage.InternalWriteTo()
3365 if (OptionalDouble != 0D) { in CalculateSize()
3662 if (other.OptionalDouble != 0D) { in MergeFrom()
3663 OptionalDouble = other.OptionalDouble; in MergeFrom()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/
DUnittestProto3Optional.cs431 public double OptionalDouble { property in ProtobufUnittest.TestProto3Optional
650 …bufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) r… in Equals()
678 …) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptionalDouble); in GetHashCode()
752 output.WriteDouble(OptionalDouble); in WriteTo()
846 output.WriteDouble(OptionalDouble); in IBufferMessage.InternalWriteTo()
1003 OptionalDouble = other.OptionalDouble; in MergeFrom()
1098 OptionalDouble = input.ReadDouble(); in MergeFrom()
1203 OptionalDouble = input.ReadDouble(); in IBufferMessage.InternalMergeFrom()
DTestMessagesProto3.cs625 public double OptionalDouble { property in ProtobufTestMessages.Proto3.TestAllTypesProto3
2308 …bufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) r… in Equals()
2467 …if (OptionalDouble != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Get… in GetHashCode()
2670 if (OptionalDouble != 0D) { in WriteTo()
2672 output.WriteDouble(OptionalDouble); in WriteTo()
3023 if (OptionalDouble != 0D) { in IBufferMessage.InternalWriteTo()
3025 output.WriteDouble(OptionalDouble); in IBufferMessage.InternalWriteTo()
3365 if (OptionalDouble != 0D) { in CalculateSize()
3662 if (other.OptionalDouble != 0D) { in MergeFrom()
3663 OptionalDouble = other.OptionalDouble; in MergeFrom()
[all …]
/external/golang-protobuf/internal/testprotos/nullable/
Dnullable.go21OptionalDouble float64 `protobuf:"fixed64,106,opt,name=optional_do… member
128OptionalDouble float64 `protobuf:"fixed64,106,opt,name=optional_do… member
/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto3/
Dfields.pb.go78OptionalDouble float64 `protobuf:"fixed64,14,opt,name=optional_doub… member
229 return x.OptionalDouble
/external/guava/guava-tests/test/com/google/common/collect/
DStreamsTest.java30 import java.util.OptionalDouble;
171 assertThat(stream(OptionalDouble.empty())).isEmpty(); in testStream_optionalDouble()
172 assertThat(stream(OptionalDouble.of(5.0))).containsExactly(5.0); in testStream_optionalDouble()
/external/golang-protobuf/internal/cmd/generate-corpus/
Dmain.go40 OptionalDouble: proto.Float64(1012.5),
/external/guava/guava-testlib/src/com/google/common/testing/
DArbitraryInstances.java122 import java.util.OptionalDouble;
216 .put(OptionalDouble.class, OptionalDouble.empty())
DFreshValueGenerator.java114 import java.util.OptionalDouble;
562 OptionalDouble generateOptionalDouble() { in generateOptionalDouble()
563 return OptionalDouble.of(generateDouble()); in generateOptionalDouble()
/external/golang-protobuf/internal/testprotos/test3/
Dtest.pb.go158OptionalDouble *float64 `protobuf:"fixed64,12,opt,name=optio… member
477 if x != nil && x.OptionalDouble != nil {
478 return *x.OptionalDouble
/external/guava/guava-testlib/test/com/google/common/testing/
DArbitraryInstancesTest.java105 import java.util.OptionalDouble;
174 assertEquals(OptionalDouble.empty(), ArbitraryInstances.get(OptionalDouble.class)); in testGet_primitives()
DFreshValueGeneratorTest.java100 import java.util.OptionalDouble;
478 assertFreshInstance(new TypeToken<OptionalDouble>() {}); in testOptionalDouble()
/external/golang-protobuf/testing/protocmp/
Dreflect_test.go27 OptionalDouble: proto.Float64(64.64),
/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto2/
Dfields.pb.go92OptionalDouble *float64 `protobuf:"fixed64,14,opt,name=optional_d… member
345 if x != nil && x.OptionalDouble != nil {
346 return *x.OptionalDouble
/external/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs108 OptionalDouble = 23.5, in CreateFullTestAllTypesProto2()
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DSampleMessages.cs108 OptionalDouble = 23.5, in CreateFullTestAllTypesProto2()
/external/golang-protobuf/internal/testprotos/legacy/proto3_20190205_c823c79e/
Dtest.pb.go153OptionalDouble float64 `protobuf:"fixed64,112,opt,name=optional_double,json=… member
350 return m.OptionalDouble

123