@NonNullByDefault
public final class WritableObjects {
private WritableObjects() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final Splitter DOT_SPLITTER = Splitter.on('.');
private ClassLoaderUtils() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
/**
private static final @NonNull RejectedExecutionHandler WAIT_IN_QUEUE_HANDLER = new WaitInQueueExecutionHandler();
private ExecutorServiceUtil() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.concepts.Mutable;
public final class Immutables {
-
- private Immutables() {
- throw new UnsupportedOperationException("Helper class");
- }
-
private static final ImmutableSet<Class<?>> KNOWN_IMMUTABLES = ImmutableSet.of(
Integer.class, Short.class, BigDecimal.class, BigInteger.class, Byte.class, Character.class, Double.class,
Float.class, String.class, Boolean.class, Void.class);
+ private Immutables() {
+ // Hidden on purpose
+ }
+
/**
* Determines if object is known to be immutable
*
import java.util.List;
/**
- * Utility methods for lazily instantiated collections. These are useful for
- * situations when we start off with an empty collection (where Collections.empty()
- * can be reused), but need to add more things.
+ * Utility methods for lazily instantiated collections. These are useful for situations when we start off with an empty
+ * collection (where Collections.empty() * can be reused), but need to add more things.
*/
public final class LazyCollections {
-
private LazyCollections() {
- throw new UnsupportedOperationException("Utility class should not be instantiated");
+ // Hidden on purpose
}
/**
ret.add(obj);
return ret;
}
-
}
CacheBuilder.newBuilder().weakValues().build();
private OffsetMapCache() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
@VisibleForTesting
private static final ThreadLocal<Deque<Entry<?, Object>>> STACK = new ThreadLocal<>();
private RecursiveObjectLeaker() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
// Key is checked for identity
}
private UntrustedXML() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
ORIGINAL_REVISION);
private OpenDaylightExtensionsConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final String MODULE_PREFIX = "oc-ext";
private OpenConfigConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final String MODULE_PREFIX = "nc";
private NetconfConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final String MODULE_PREFIX = "nacm";
private NACMConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final String MODULE_PREFIX = "md";
private MetadataConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final String MODULE_PREFIX = "rc";
private YangDataConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final String MODULE_PREFIX = "yangmnt";
private SchemaMountConstants() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final QName DUMMY_OPERATION_OUTPUT = QName.create("DUMMY", "output");
private YangConstants() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
/**
@NonNullByDefault
public final class YangNames {
private YangNames() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final int STRINGTREE_INDENT = 4;
private NormalizedNodes() {
- throw new UnsupportedOperationException("Utility class should not be instantiated");
+ // Hidden on purpose
}
/**
private static final Logger LOG = LoggerFactory.getLogger(DataTreeCandidates.class);
private DataTreeCandidates() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static @NonNull DataTreeCandidate newDataTreeCandidate(final YangInstanceIdentifier rootPath,
@Beta
public final class StoreTreeNodes {
private StoreTreeNodes() {
- throw new UnsupportedOperationException("Utility class should not be instantiated");
+ // Hidden on purpose
}
/**
*/
public final class TreeNodeFactory {
private TreeNodeFactory() {
- throw new UnsupportedOperationException("Utility class should not be instantiated");
+ // Hidden on purpose
}
/**
@Deprecated
public final class PrefixConverters {
private PrefixConverters() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
@Beta
public final class JsonWriterFactory {
private JsonWriterFactory() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
public final class LeafRefContextUtils {
-
private LeafRefContextUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static LeafRefContext getLeafRefReferencingContext(final SchemaNode node, final LeafRefContext root) {
public final class LeafRefUtils {
private LeafRefUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
public final class Builders {
-
private Builders() {
- throw new UnsupportedOperationException("Utilities class should not be instantiated");
+ // Hidden on purpose
}
public static <T> NormalizedNodeBuilder<NodeIdentifier, T, LeafNode<T>> leafBuilder() {
private static final NodeIdentifier SCHEMACONTEXT_NAME = NodeIdentifier.create(SchemaContext.NAME);
private ImmutableNodes() {
- throw new UnsupportedOperationException("Utilities class should not be instantiated");
+ // Hidden on purpose
}
public static @NonNull CollectionNodeBuilder<MapEntryNode, MapNode> mapNodeBuilder() {
public final class SchemaUtils {
private SchemaUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
@Beta
public final class NormalizedNodeTransformations {
-
private NormalizedNodeTransformations() {
- throw new UnsupportedOperationException("Utility class.");
+ // Hidden on purpose
}
public static NormalizedNode<?, ?> transformQNames(final NormalizedNode<?, ?> original,
private static final Interner<Object> INTERNER = Interners.newWeakInterner();
private LeafInterner() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
private static <T extends LeafNode<?>> T intern(final T sample) {
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
public final class ParserStreamUtils {
-
private ParserStreamUtils() {
- throw new UnsupportedOperationException("Utility class should not be instantiated.");
+ // Hidden on purpose
}
/**
@Beta
@NonNullByDefault
public final class IdentityCodecUtil {
-
private IdentityCodecUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final Splitter COLON_SPLITTER = Splitter.on(':').trimResults();
private QNameCodecUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static QName decodeQName(final String str, final Function<String, QNameModule> prefixToModule) {
final class TypeDefinitions {
private TypeDefinitions() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static int basicHashCode(final @NonNull TypeDefinition<?> type) {
private static final TransformerFactory TRANSFORMER_FACTORY = TransformerFactory.newInstance();
private YinExportUtils() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
/**
*/
public final class BaseConstraints {
private BaseConstraints() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public final class ModuleDependencySort {
private static final Logger LOG = LoggerFactory.getLogger(ModuleDependencySort.class);
- /**
- * It is not desirable to instance this class.
- */
private ModuleDependencySort() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final int UNICODE_SCRIPT_FIX_COUNTER = 30;
private RegexUtils() {
- throw new UnsupportedOperationException("Utility class should not be instantiated.");
+ // Hidden on purpose
}
/**
private static final Splitter SLASH_SPLITTER = Splitter.on('/').omitEmptyStrings();
private SchemaContextUtil() {
+ // Hidden on purpose
}
/**
public final class SchemaNodeUtils {
private SchemaNodeUtils() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
public static Optional<SchemaNode> getOriginalIfPossible(final SchemaNode node) {
@Beta
public final class BaseTypes {
private BaseTypes() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static @NonNull BinaryTypeDefinition binaryType() {
@Deprecated
public final class CompatUtils {
private CompatUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
@NonNullByDefault
public final class ConcreteTypes {
private ConcreteTypes() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static ConcreteTypeBuilder<?> concreteTypeBuilder(final TypeDefinition<?> baseType, final SchemaPath path) {
@Beta
public final class DerivedTypes {
private DerivedTypes() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static @NonNull DerivedTypeBuilder<?> derivedTypeBuilder(final @NonNull TypeDefinition<?> baseType,
final class JavaLengthConstraints {
private JavaLengthConstraints() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
private static final RangeSet<Integer> INTEGER_ALLOWED_RANGES =
}
private NumberUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
@SuppressWarnings("unchecked")
@Beta
public final class RestrictedTypes {
private RestrictedTypes() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static @NonNull LengthRestrictedTypeBuilder<BinaryTypeDefinition> newBinaryBuilder(
}
private SystemTestUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static final FileFilter YANG_FILE_FILTER = file -> {
private static final @NonNull CrossSourceStatementReactor DEFAULT_REACTOR = defaultReactorBuilder().build();
private DefaultReactors() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final CrossSourceStatementReactor VANILLA_RFC6020_RFC7950_REACTOR = vanillaReactorBuilder().build();
private RFC7950Reactors() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
public final class YangValidationBundles {
- private YangValidationBundles() {
- throw new UnsupportedOperationException("Utility class");
- }
-
public static final Set<StatementDefinition> SUPPORTED_REFINE_SUBSTATEMENTS = ImmutableSet.of(
YangStmtMapping.DEFAULT, YangStmtMapping.DESCRIPTION, YangStmtMapping.REFERENCE, YangStmtMapping.CONFIG,
YangStmtMapping.MANDATORY, YangStmtMapping.MUST, YangStmtMapping.PRESENCE, YangStmtMapping.MIN_ELEMENTS,
.put(YangStmtMapping.MAX_ELEMENTS, ImmutableSet.of(YangStmtMapping.LIST, YangStmtMapping.LEAF_LIST))
.build();
+ private YangValidationBundles() {
+ // Hidden on purpose
+ }
+
/**
* Supported deviation target statements for specific deviate substatements in specific yang-version.
* Example: deviate 'add' adds a 'default' substatement. In YANG 1.0, the target node of such deviation can be
private static final Pattern ESCAPED_TAB = Pattern.compile("\\t", Pattern.LITERAL);
private ArgumentContextUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static String stringFromStringContext(final ArgumentContext context, final YangVersion yangVersion,
private static final BigDecimal YANG_MAX_NUM = BigDecimal.valueOf(Double.MAX_VALUE);
private ArgumentUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static int compareNumbers(final Number n1, final Number n2) {
private static final String UNBOUNDED_STR = "unbounded";
private EffectiveStmtUtils() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
public static SourceException createNameCollisionSourceException(final StmtContext<?, ?, ?> ctx,
import org.opendaylight.yangtools.yang.parser.spi.source.ModuleCtxToSourceIdentifier;
final class RevisionImport {
-
private RevisionImport() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
static void onLinkageDeclared(
return revision == null ? RevisionSourceIdentifier.create(stmt.getStatementArgument())
: RevisionSourceIdentifier.create(stmt.getStatementArgument(), revision.getStatementArgument());
}
-}
\ No newline at end of file
+}
}
}
-
private SemanticVersionImport() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
static void onLinkageDeclared(
@Beta
final class EffectiveTypeUtil {
private EffectiveTypeUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static @NonNull Bit buildBit(final @NonNull BitEffectiveStatementImpl stmt, final long effectivePos) {
public final class StmtContextUtils {
private StmtContextUtils() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
@SuppressWarnings("unchecked")
}
private YangParserTestUtils() {
- throw new UnsupportedOperationException("Utility class should not be instantiated.");
+ // Hidden on purpose
}
/**