Record Class BatchGroupLoadSpec

java.lang.Object
java.lang.Record
ghidra.plugins.importer.batch.BatchGroupLoadSpec
Record Components:
lcsPair - The language/compiler spec ID
preferred - true if this BatchGroupLoadSpec is preferred; otherwise, false
All Implemented Interfaces:
Comparable<BatchGroupLoadSpec>

public record BatchGroupLoadSpec(LanguageCompilerSpecPair lcsPair, boolean preferred) extends Record implements Comparable<BatchGroupLoadSpec>
Similar to a LoadSpec, but not associated with a Loader.

This has the same information as a LoadSpec, but for all the members of a BatchGroup.

  • Constructor Details

    • BatchGroupLoadSpec

      public BatchGroupLoadSpec(LoadSpec loadSpec)
    • BatchGroupLoadSpec

      public BatchGroupLoadSpec(LanguageCompilerSpecPair lcsPair, boolean preferred)
      Creates an instance of a BatchGroupLoadSpec record class.
      Parameters:
      lcsPair - the value for the lcsPair record component
      preferred - the value for the preferred record component
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • matches

      public boolean matches(LoadSpec loadSpec)
    • compareTo

      public int compareTo(BatchGroupLoadSpec o)
      Specified by:
      compareTo in interface Comparable<BatchGroupLoadSpec>
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • lcsPair

      public LanguageCompilerSpecPair lcsPair()
      Returns the value of the lcsPair record component.
      Returns:
      the value of the lcsPair record component
    • preferred

      public boolean preferred()
      Returns the value of the preferred record component.
      Returns:
      the value of the preferred record component