static boolean equals(final @NonNull InstanceIdentifierTypeDefinition type, final @Nullable Object obj) { if (type == obj) { return true; } final InstanceIdentifierTypeDefinition other = TypeDefinitions.castIfEquals( InstanceIdentifierTypeDefinition.class, type, obj); return other != null && type.requireInstance() == other.requireInstance(); }
static boolean equals(final @NonNull InstanceIdentifierTypeDefinition type, final @Nullable Object obj) { if (type == obj) { return true; } final InstanceIdentifierTypeDefinition other = TypeDefinitions.castIfEquals( InstanceIdentifierTypeDefinition.class, type, obj); return other != null && type.requireInstance() == other.requireInstance(); }
private static TypeDefinition<?> baseTypeIfNotConstrained(final @NonNull InstanceIdentifierTypeDefinition type) { final InstanceIdentifierTypeDefinition base = type.getBaseType(); return type.requireInstance() == base.requireInstance() ? base : type; }
private static TypeDefinition<?> baseTypeIfNotConstrained(final @NonNull InstanceIdentifierTypeDefinition type) { final InstanceIdentifierTypeDefinition base = type.getBaseType(); return type.requireInstance() == base.requireInstance() ? base : type; }
private void emitInstanceIdentifierSpecification(final InstanceIdentifierTypeDefinition typeDefinition) { emitRequireInstanceNode(typeDefinition.requireInstance()); }
static String toString(final @NonNull InstanceIdentifierTypeDefinition type) { return TypeDefinitions.toStringHelper(type).add("requireInstance", type.requireInstance()).toString(); } }
static String toString(final @NonNull InstanceIdentifierTypeDefinition type) { return TypeDefinitions.toStringHelper(type).add("requireInstance", type.requireInstance()).toString(); } }
static int hashCode(final @NonNull InstanceIdentifierTypeDefinition type) { return Objects.hash(type.getPath(), type.getUnknownSchemaNodes(), type.getBaseType(), type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.requireInstance()); }
static int hashCode(final @NonNull InstanceIdentifierTypeDefinition type) { return Objects.hash(type.getPath(), type.getUnknownSchemaNodes(), type.getBaseType(), type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.requireInstance()); }
@Override InstanceIdentifierTypeDefinition buildType() { final InstanceIdentifierTypeDefinition base = getBaseType(); if (getRequireInstance() == base.requireInstance()) { return base; } return new RestrictedInstanceIdentifierType(base, getPath(), getUnknownSchemaNodes(), getRequireInstance()); } }
@Override InstanceIdentifierTypeDefinition buildType() { final InstanceIdentifierTypeDefinition base = getBaseType(); if (getRequireInstance() == base.requireInstance()) { return base; } return new RestrictedInstanceIdentifierType(base, getPath(), getUnknownSchemaNodes(), getRequireInstance()); } }
@Override public InstanceIdentifierTypeDefinition buildType() { return new DerivedInstanceIdentifierType(getBaseType(), getPath(), getDefaultValue(), getDescription(), getReference(), getStatus(), getUnits(), getUnknownSchemaNodes(), baseType.requireInstance()); } };
@Override public InstanceIdentifierTypeDefinition build() { return new DerivedInstanceIdentifierType(getBaseType(), getPath(), getDefaultValue(), getDescription(), getReference(), getStatus(), getUnits(), getUnknownSchemaNodes(), baseType.requireInstance()); } };
@Override public InstanceIdentifierTypeDefinition buildType() { return new DerivedInstanceIdentifierType(getBaseType(), getPath(), getDefaultValue(), getDescription(), getReference(), getStatus(), getUnits(), getUnknownSchemaNodes(), baseType.requireInstance()); } };
@Override public InstanceIdentifierTypeDefinition build() { return new DerivedInstanceIdentifierType(getBaseType(), getPath(), getDefaultValue(), getDescription(), getReference(), getStatus(), getUnits(), getUnknownSchemaNodes(), baseType.requireInstance()); } };