jdk/src/java.base/share/classes/java/util/OptionalLong.java
changeset 29599 e2c48b046f91
parent 28963 8498cdb7c54b
child 33238 80720cbea36f
equal deleted inserted replaced
29598:d437190d9f9a 29599:e2c48b046f91
   242      * <li>both instances have no value present or;
   242      * <li>both instances have no value present or;
   243      * <li>the present values are "equal to" each other via {@code ==}.
   243      * <li>the present values are "equal to" each other via {@code ==}.
   244      * </ul>
   244      * </ul>
   245      *
   245      *
   246      * @param obj an object to be tested for equality
   246      * @param obj an object to be tested for equality
   247      * @return {code true} if the other object is "equal to" this object
   247      * @return {@code true} if the other object is "equal to" this object
   248      * otherwise {@code false}
   248      * otherwise {@code false}
   249      */
   249      */
   250     @Override
   250     @Override
   251     public boolean equals(Object obj) {
   251     public boolean equals(Object obj) {
   252         if (this == obj) {
   252         if (this == obj) {