All Downloads are FREE. Search and download functionalities are using the official Maven repository.

MaterialWrapping_Compile.GenerateAndWrapOutput Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
// Class GenerateAndWrapOutput
// Dafny class GenerateAndWrapOutput compiled into Java
package MaterialWrapping_Compile;

import software.amazon.cryptography.keystore.internaldafny.types.*;
import software.amazon.cryptography.materialproviders.internaldafny.types.*;
import AwsArnParsing_Compile.*;
import AwsKmsMrkMatchForDecrypt_Compile.*;
import AwsKmsUtils_Compile.*;
import KeyStoreErrorMessages_Compile.*;
import KmsArn_Compile.*;
import Structure_Compile.*;
import KMSKeystoreOperations_Compile.*;
import DDBKeystoreOperations_Compile.*;
import CreateKeys_Compile.*;
import CreateKeyStoreTable_Compile.*;
import GetKeys_Compile.*;
import AwsCryptographyKeyStoreOperations_Compile.*;
import software.amazon.cryptography.keystore.internaldafny.*;
import AlgorithmSuites_Compile.*;
import Materials_Compile.*;
import Keyring_Compile.*;
import MultiKeyring_Compile.*;
import AwsKmsMrkAreUnique_Compile.*;
import Constants_Compile.*;

@SuppressWarnings({"unchecked", "deprecation"})
public class GenerateAndWrapOutput {
  public dafny.DafnySequence _plaintextMaterial;
  public dafny.DafnySequence _wrappedMaterial;
  public T _wrapInfo;
  protected dafny.TypeDescriptor _td_T;
  public GenerateAndWrapOutput (dafny.TypeDescriptor _td_T, dafny.DafnySequence plaintextMaterial, dafny.DafnySequence wrappedMaterial, T wrapInfo) {
    this._td_T = _td_T;
    this._plaintextMaterial = plaintextMaterial;
    this._wrappedMaterial = wrappedMaterial;
    this._wrapInfo = wrapInfo;
  }

  @Override
  public boolean equals(Object other) {
    if (this == other) return true;
    if (other == null) return false;
    if (getClass() != other.getClass()) return false;
    GenerateAndWrapOutput o = (GenerateAndWrapOutput)other;
    return true && java.util.Objects.equals(this._plaintextMaterial, o._plaintextMaterial) && java.util.Objects.equals(this._wrappedMaterial, o._wrappedMaterial) && java.util.Objects.equals(this._wrapInfo, o._wrapInfo);
  }
  @Override
  public int hashCode() {
    long hash = 5381;
    hash = ((hash << 5) + hash) + 0;
    hash = ((hash << 5) + hash) + java.util.Objects.hashCode(this._plaintextMaterial);
    hash = ((hash << 5) + hash) + java.util.Objects.hashCode(this._wrappedMaterial);
    hash = ((hash << 5) + hash) + java.util.Objects.hashCode(this._wrapInfo);
    return (int)hash;
  }

  @Override
  public String toString() {
    StringBuilder s = new StringBuilder();
    s.append("MaterialWrapping.GenerateAndWrapOutput.GenerateAndWrapOutput");
    s.append("(");
    s.append(dafny.Helpers.toString(this._plaintextMaterial));
    s.append(", ");
    s.append(dafny.Helpers.toString(this._wrappedMaterial));
    s.append(", ");
    s.append(dafny.Helpers.toString(this._wrapInfo));
    s.append(")");
    return s.toString();
  }
  public static  dafny.TypeDescriptor> _typeDescriptor(dafny.TypeDescriptor _td_T) {
    return (dafny.TypeDescriptor>) (dafny.TypeDescriptor) dafny.TypeDescriptor.>referenceWithInitializer(GenerateAndWrapOutput.class, () -> GenerateAndWrapOutput.Default(_td_T, _td_T.defaultValue()));
  }

  public static  GenerateAndWrapOutput Default(dafny.TypeDescriptor _td_T, T _default_T) {
    return MaterialWrapping_Compile.GenerateAndWrapOutput.create(_td_T, dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), _default_T);
  }
  @Deprecated()
  public static  GenerateAndWrapOutput Default(T _default_T) {
    dafny.TypeDescriptor _td_T = null;
    return MaterialWrapping_Compile.GenerateAndWrapOutput.create(_td_T, dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), dafny.DafnySequence. empty(BoundedInts_Compile.uint8._typeDescriptor()), _default_T);
  }
  public static  GenerateAndWrapOutput create(dafny.TypeDescriptor _td_T, dafny.DafnySequence plaintextMaterial, dafny.DafnySequence wrappedMaterial, T wrapInfo) {
    return new GenerateAndWrapOutput(_td_T, plaintextMaterial, wrappedMaterial, wrapInfo);
  }
  @Deprecated()
  public static  GenerateAndWrapOutput create(dafny.DafnySequence plaintextMaterial, dafny.DafnySequence wrappedMaterial, T wrapInfo) {
    return new GenerateAndWrapOutput(null, plaintextMaterial, wrappedMaterial, wrapInfo);
  }
  public static  GenerateAndWrapOutput create_GenerateAndWrapOutput(dafny.TypeDescriptor _td_T, dafny.DafnySequence plaintextMaterial, dafny.DafnySequence wrappedMaterial, T wrapInfo) {
    return create(_td_T, plaintextMaterial, wrappedMaterial, wrapInfo);
  }
  @Deprecated()
  public static  GenerateAndWrapOutput create_GenerateAndWrapOutput(dafny.DafnySequence plaintextMaterial, dafny.DafnySequence wrappedMaterial, T wrapInfo) {
    return create(null, plaintextMaterial, wrappedMaterial, wrapInfo);
  }
  public boolean is_GenerateAndWrapOutput() { return true; }
  public dafny.DafnySequence dtor_plaintextMaterial() {
    return this._plaintextMaterial;
  }
  public dafny.DafnySequence dtor_wrappedMaterial() {
    return this._wrappedMaterial;
  }
  public T dtor_wrapInfo() {
    return this._wrapInfo;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy