< prev index next >

src/java.base/share/classes/java/lang/Double.java

Print this page




1085      */
1086     @Override
1087     public Optional<Double> describeConstable() {
1088         return Optional.of(this);
1089     }
1090 
1091     /**
1092      * Resolves this instance as a {@link ConstantDesc}, the result of which is
1093      * the instance itself.
1094      *
1095      * @param lookup ignored
1096      * @return the {@linkplain Double} instance
1097      * @since 12
1098      */
1099     @Override
1100     public Double resolveConstantDesc(MethodHandles.Lookup lookup) {
1101         return this;
1102     }
1103 
1104     /** use serialVersionUID from JDK 1.0.2 for interoperability */

1105     private static final long serialVersionUID = -9172774392245257468L;
1106 }


1085      */
1086     @Override
1087     public Optional<Double> describeConstable() {
1088         return Optional.of(this);
1089     }
1090 
1091     /**
1092      * Resolves this instance as a {@link ConstantDesc}, the result of which is
1093      * the instance itself.
1094      *
1095      * @param lookup ignored
1096      * @return the {@linkplain Double} instance
1097      * @since 12
1098      */
1099     @Override
1100     public Double resolveConstantDesc(MethodHandles.Lookup lookup) {
1101         return this;
1102     }
1103 
1104     /** use serialVersionUID from JDK 1.0.2 for interoperability */
1105     @java.io.Serial
1106     private static final long serialVersionUID = -9172774392245257468L;
1107 }
< prev index next >