Class NoValueSnakImpl

java.lang.Object
org.wikidata.wdtk.datamodel.implementation.SnakImpl
org.wikidata.wdtk.datamodel.implementation.NoValueSnakImpl
All Implemented Interfaces:
NoValueSnak, Snak

public class NoValueSnakImpl extends SnakImpl implements NoValueSnak
Jackson implementation of NoValueSnak.
Author:
Fredo Erxleben, Antonin Delpeuch
  • Constructor Details

    • NoValueSnakImpl

      public NoValueSnakImpl(PropertyIdValue property)
      Constructor.
      Parameters:
      property - the property id used by this no value snak
    • NoValueSnakImpl

      protected NoValueSnakImpl(String property, String siteIri)
      Constructor for deserialization from JSON with Jackson.
  • Method Details

    • accept

      public <T> T accept(SnakVisitor<T> snakVisitor)
      Description copied from interface: Snak
      Accept a SnakVisitor and return its output.
      Specified by:
      accept in interface Snak
      Parameters:
      snakVisitor - the SnakVisitor
      Returns:
      output of the visitor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSnakType

      public String getSnakType()
      Specified by:
      getSnakType in class SnakImpl