Class Long2StatusCollection


  • public class Long2StatusCollection
    extends Object
    Map from long_value to its Status, not thread safe if not frozen. Renamed from BuildTests class, keeping the implementation. For a multiple occurences of a status for the same ID, keeps the worst status. Used to keep a map testNameId -> status or buildId -> status depending on usage context
    See Also:
    TestName2Index
    • Field Detail

      • TEST_COUNT_DIFFERENCE

        public static final double TEST_COUNT_DIFFERENCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Long2StatusCollection

        public Long2StatusCollection()
    • Method Detail

      • put

        public void put​(long longValue,
                        byte status)
      • getStatus

        @Nullable
        public Status getStatus​(long longValue)
      • get

        public int get​(long longValue)
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()
      • createDiff

        @Nullable
        public Long2StatusCollection createDiff​(@NotNull
                                                Long2StatusCollection tests)
        Create a new (or reuse current BuildTests object) which uses current BuildTests as a template and contains differences in test statuses comparing to the current
        Parameters:
        tests - to be replaced with a returned BuildTests
        Returns:
        new object or null if diff cannot be created
      • isFrozen

        public boolean isFrozen()