Class BuildTypeIds


  • public class BuildTypeIds
    extends Object
    • Constructor Detail

    • Method Detail

      • getOrCreate

        @NotNull
        public static BuildTypeIds getOrCreate​(@NotNull
                                               Collection<String> ids)
        Creates a new BuildTypeIds instance and caches it if there is no cached instance with specified ids yet, otherwise returns already existing instance.
        Parameters:
        ids -
        Returns:
        see above
      • create

        @NotNull
        public static BuildTypeIds create​(@NotNull
                                          Collection<String> ids)
        Creates a new BuildTypeIds instance
        Parameters:
        ids -
        Returns:
      • getIds

        @NotNull
        public String[] getIds()
      • intersects

        public boolean intersects​(BuildTypeIds buildTypeIds)
      • indexOf

        public int indexOf​(@NotNull
                           String id)
      • size

        public int size()
      • clearPool

        public static void clearPool​(long maxAge)
        Removes pooled ids which were not reused for the specified time in milliseconds. If maxAge = 0, then all ids which were used only once will be removed from the pool. If maxAge = -1, then the whole pool is cleaned up.
        Parameters:
        maxAge - max ids age in milliseconds
      • removeFromPool

        public static boolean removeFromPool​(@NotNull
                                             BuildTypeIds ids)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object