Class GHPersonSet<T extends GHPerson>

Type Parameters:
T - the type parameter
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Set<T>

public class GHPersonSet<T extends GHPerson> extends HashSet<T>
Set of GHPerson with helper lookup methods.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHPersonSet

      public GHPersonSet()
      Instantiates a new Gh person set.
    • GHPersonSet

      public GHPersonSet(Collection<? extends T> c)
      Instantiates a new Gh person set.
      Parameters:
      c - the c
    • GHPersonSet

      public GHPersonSet(T... c)
      Instantiates a new Gh person set.
      Parameters:
      c - the c
    • GHPersonSet

      public GHPersonSet(int initialCapacity, float loadFactor)
      Instantiates a new Gh person set.
      Parameters:
      initialCapacity - the initial capacity
      loadFactor - the load factor
    • GHPersonSet

      public GHPersonSet(int initialCapacity)
      Instantiates a new Gh person set.
      Parameters:
      initialCapacity - the initial capacity
  • Method Details

    • byLogin

      public T byLogin(String login)
      Finds the item by its login.
      Parameters:
      login - the login
      Returns:
      the t