Class Article

java.lang.Object
de.calamanari.pk.facade.article.Article

public class Article
extends java.lang.Object
Article - a supplementary class in FACADE example.
Author:
Karl Eilebrecht
  • Constructor Summary

    Constructors
    Constructor Description
    Article​(java.lang.String id, java.lang.String name, double price)
    Creates new Article
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object obj)  
    java.lang.String getId()
    Returns article identifier
    java.lang.String getName()
    Returns article name
    double getPrice()
    Returns the article price
    int hashCode()  
    void setId​(java.lang.String id)
    Sets the article identifier
    void setName​(java.lang.String name)
    Sets the name of the article
    void setPrice​(double price)
    Sets the article price
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Article

      public Article​(java.lang.String id, java.lang.String name, double price)
      Creates new Article
      Parameters:
      id - identifier
      name - article name
      price - article price
  • Method Details

    • getId

      public java.lang.String getId()
      Returns article identifier
      Returns:
      id
    • setId

      public void setId​(java.lang.String id)
      Sets the article identifier
      Parameters:
      id - identifier
    • getName

      public java.lang.String getName()
      Returns article name
      Returns:
      name of article
    • setName

      public void setName​(java.lang.String name)
      Sets the name of the article
      Parameters:
      name - article name
    • getPrice

      public double getPrice()
      Returns the article price
      Returns:
      price of article
    • setPrice

      public void setPrice​(double price)
      Sets the article price
      Parameters:
      price - article price to set
    • hashCode

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

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object