- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
package java.util;
/**
* This class consists of {@code static} utility methods for operating
* on objects. These utilities include {@code null}-safe or {@code
* null}-tolerant methods for computing the hash code of an object,
* returning a string for an object, and comparing two objects.
*
* @since 1.7
*/
public final class Objects {
private Objects() {
throw new AssertionError("No java.util.Objects instances for you!");
}
}
Steve_Brown 15.01.2016 12:18 # +1
(интересно, а можно ли как-нибудь вызвать приватный конструктор - скажем, через рефлексию)
someone 15.01.2016 16:22 # +2
guest 15.01.2016 14:45 # +1