Record Class BooleanResultData

java.lang.Object
java.lang.Record
org.aksw.iguana.cc.lang.impl.BooleanResultData
All Implemented Interfaces:
LanguageProcessor.LanguageProcessingData, Storable, Storable.AsCSV, Storable.AsRDF

public record BooleanResultData(long hash, Boolean result, List<String> links, Exception exception) extends Record implements LanguageProcessor.LanguageProcessingData, Storable.AsCSV, Storable.AsRDF
  • Constructor Details

    • BooleanResultData

      public BooleanResultData(long hash, Boolean result, List<String> links, Exception exception)
      Creates an instance of a BooleanResultData record class.
      Parameters:
      hash - the value for the hash record component
      result - the value for the result record component
      links - the value for the links record component
      exception - the value for the exception record component
  • Method Details

    • toCSV

      public Storable.CSVData toCSV()
      Description copied from interface: Storable.AsCSV
      Converts the data into CSV files. The key of the map contains the file name for the linked entries.
      Specified by:
      toCSV in interface Storable.AsCSV
      Returns:
      CSVFileData list which contains all the files and their data that should be created and stored
    • toRDF

      public org.apache.jena.rdf.model.Model toRDF()
      Description copied from interface: Storable.AsRDF
      Converts the data into an RDF model, which will be added to the appropriate storages.
      Specified by:
      toRDF in interface Storable.AsRDF
      Returns:
      RDF model that contains the data
    • toString

      public final 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
    • 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 '=='.
      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.
    • hash

      public long hash()
      Returns the value of the hash record component.
      Specified by:
      hash in interface LanguageProcessor.LanguageProcessingData
      Returns:
      the value of the hash record component
    • result

      public Boolean result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • links

      public List<String> links()
      Returns the value of the links record component.
      Returns:
      the value of the links record component
    • exception

      public Exception exception()
      Returns the value of the exception record component.
      Specified by:
      exception in interface LanguageProcessor.LanguageProcessingData
      Returns:
      the value of the exception record component