Class Party

java.lang.Object
org.episteme.social.politics.Party
All Implemented Interfaces:
Serializable

public class Party extends Object implements Serializable
Represents a political party, characterized by its ideology, leadership, and organization. * @version 1.1
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Party

      public Party(String name, Ideology ideology)
      Creates a new Political Party.
      Parameters:
      name - the official name of the party
      ideology - the core ideology
      Throws:
      NullPointerException - if name or ideology is null
  • Method Details

    • getName

      public String getName()
    • getAbbreviation

      public String getAbbreviation()
    • getIdeology

      public Ideology getIdeology()
    • getFoundedDate

      public LocalDate getFoundedDate()
    • getLeader

      public String getLeader()
    • getHeadquarters

      public String getHeadquarters()
    • getMemberCount

      public long getMemberCount()
    • getColor

      public String getColor()
    • setAbbreviation

      public void setAbbreviation(String abbr)
    • setIdeology

      public void setIdeology(Ideology ideology)
    • setFoundedDate

      public void setFoundedDate(LocalDate date)
    • setLeader

      public void setLeader(String leader)
    • setHeadquarters

      public void setHeadquarters(String hq)
    • setMemberCount

      public void setMemberCount(long count)
    • setColor

      public void setColor(String color)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object