Class TechSet


  • public class TechSet
    extends java.lang.Object
    • Field Detail

      • AllTech

        @Deprecated
        public static final TechSet AllTech
        Deprecated.
        Not for public use. Replaced by getAllTech().
    • Constructor Detail

      • TechSet

        public TechSet()
      • TechSet

        public TechSet​(Tech... include)
      • TechSet

        public TechSet​(Tech[] include,
                       Tech[] exclude)
      • TechSet

        public TechSet​(java.util.Set<Tech> include)
      • TechSet

        public TechSet​(TechSet techSet)
    • Method Detail

      • include

        public void include​(Tech tech)
      • exclude

        public void exclude​(Tech tech)
      • includes

        public boolean includes​(Tech tech)
      • includesAny

        public boolean includesAny​(Tech... techs)
        Tells whether or not any of the given technologies is included.
        Parameters:
        techs - the technologies that will be checked.
        Returns:
        true if any of the technologies is included, false otherwise.
        Since:
        2.8.0
        See Also:
        includes(Tech)
      • getIncludeTech

        public java.util.TreeSet<Tech> getIncludeTech()
      • getExcludeTech

        public java.util.TreeSet<Tech> getExcludeTech()
      • print

        public void print()
      • getAllTech

        public static TechSet getAllTech()
        Get a TechSet including all Tech currently known

        Info: always returns a new TechSet containing the currently known Tech

        Returns:
        TechSet including all Tech
      • 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