Class MatchState

  • All Implemented Interfaces:
    android.os.Parcelable

    @Serializable() 
    public final class MatchState
     implements Parcelable
                        

    Legacy diagnostic match history. Its TTL limits history retention only; activity eligibility belongs to the current continuous run in the activity coordinator. The parcel/JSON shape and duplicate-query helpers are retained for compatibility, not used as a recognition gate.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final List<MatchInfo> items
      private final Long ttl
    • Constructor Summary

      Constructors 
      Constructor Description
      MatchState(List<MatchInfo> items, Long ttl)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<MatchInfo> getItems() The list of match information.
      final Long getTtl() The time to live for the match state in seconds.
      final MatchState add(MatchInfo material, Long currentTime)
      final Boolean isDuplicateLast(String name, Integer type, Long currentTime, String marker) Checks if the last match is a duplicate of the given match.
      final Boolean isDuplcateLast(String name, Integer type)
      • Methods inherited from class android.os.Parcelable

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MatchState

        MatchState(List<MatchInfo> items, Long ttl)
    • Method Detail

      • getTtl

         final Long getTtl()

        The time to live for the match state in seconds.

      • isDuplicateLast

         final Boolean isDuplicateLast(String name, Integer type, Long currentTime, String marker)

        Checks if the last match is a duplicate of the given match.

        Parameters:
        name - The match name to compare with.
        type - The match type to compare with.
        Returns:

        True if the last match is a duplicate, false otherwise.

      • isDuplcateLast

        @Deprecated(message = "Use isDuplicateLast") final Boolean isDuplcateLast(String name, Integer type)