Class SomeValueSnakImpl

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

public class SomeValueSnakImpl extends SnakImpl implements SomeValueSnak
Jackson implementation of SomeValueSnak.
Author:
Fredo Erxleben
  • Constructor Details

    • SomeValueSnakImpl

      public SomeValueSnakImpl(PropertyIdValue property)
      Constructor.
      Parameters:
      property - the id of the property used for this some value snak
    • SomeValueSnakImpl

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

    • getSnakType

      public String getSnakType()
      Specified by:
      getSnakType in class SnakImpl
    • 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