public final class StaticClassUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
instanceNotAllowed(Class<?> caller)
Support method that can be used in constructors to throw an
UnsupportedOperationException if someone is trying to create an
instance of the class. |
public static void instanceNotAllowed(Class<?> caller) throws UnsupportedOperationException
UnsupportedOperationException if someone is trying to create an
instance of the class.caller - the class of the instance that called this methodUnsupportedOperationExceptionCopyright © 2019 Speedment, Inc.. All rights reserved.