Class ObjetAId

java.lang.Object
fr.formiko.formiko.ObjetAId
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ObjetSurCarteAId

public class ObjetAId extends Object implements Serializable
Basic class for all Object with an id.
Author:
Hydrolien
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static int
     
    protected final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Main constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Standard equals function with id.
    static int
     
    static int
     
    int
     
    int
     
    static void
    ini()
     
    Return a string that describe this.
    Return a short string that describe this.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ic

      protected static int ic
    • id

      protected final int id
  • Constructor Details

    • ObjetAId

      public ObjetAId()
      Main constructor.
  • Method Details

    • getId

      public int getId()
    • getIc

      public static int getIc()
    • getI

      public static int getI()
    • ini

      public static void ini()
    • equals

      public boolean equals(Object o)
      Standard equals function with id. Null & other class type proof.
      Overrides:
      equals in class Object
      Parameters:
      o - o is the Object to test. It can be null or something else than this class.
    • hashCode

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

      public String toStringShort()
      Return a short string that describe this.
    • toString

      public String toString()
      Return a string that describe this.
      Overrides:
      toString in class Object