Record Class Route FLAG

java.lang.Object
java.lang.Record
com.google.adk.workflow.Route.Flag
All Implemented Interfaces:
Route
Enclosing interface:
Route

public static record Route.Flag(boolean value) extends Record implements Route
一条由布尔值标识的路由,用于表示双向分支(即数据可以在两个方向上传输)。
  • 嵌套类概述

    Nested classes/interfaces inherited from interface Route

    Route.Default, Route.Flag, Route.Num, Route.Tag
    Modifier and Type
    Interface
    Description
    static enum 
    当节点的其他所有路由路径都无法匹配该节点发送的数据时(包括该节点根本没有发送任何数据的情况),系统会使用“备用路径”(即 fallback path)来进行数据传输。
    static final record 
    一条由布尔值标识的路由,用于表示双向分支(即数据可以在两个方向上传输)。
    static final record 
    由一个整数标识的路由。
    static final record 
    一条路由通过字符串来标识,这是最常见的情况。
  • 字段摘要

    Fields inherited from interface Route

    DEFAULT_ROUTE_SENTINEL
    Modifier and Type
    Field
    Description
    static final String
    代表……的字符串 Route.Default “On the wire” 是一个英语短语,字面意思是“在线上”或“正在传输中”,通常用来描述某项信息或数据正在被发送或传输的过程中。例如: - “The order is on the wire to the supplier.”(订单正在被发送给供应商。) 这个短语强调信息传输的实时性或紧迫性。
  • 构造函数概述

    Constructors
    Constructor
    Description
    Flag(boolean value)
    创建一个……的实例。 Flag 记录类(Record Class)。
  • 方法概述

    Modifier and Type
    Method
    Description
    final boolean
    用于表示另一个对象是否“等于”当前这个对象。
    final int
    返回该对象的哈希码值。
    final String
    返回该记录类的字符串表示形式。
    boolean
    返回该值的值。 value “record component”(记录组件)。

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 构造函数详细信息

    • Flag

      public Flag(boolean value)
      创建一个……的实例。 Flag 记录类(Record Class)。
      Parameters:
      value - the value for the value record component
  • 方法详细信息(Method Details)

    • toString

      public final String toString()
      返回该记录类的字符串表示形式。该字符串包含类的名称,以及每个记录组件的名称和对应的值。
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      返回该对象的哈希码值。该哈希码值是由该对象中每个组件的哈希码计算得出的。
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      用于判断另一个对象是否“等于”当前对象。当另一个对象属于相同的类,并且所有记录组件都相同时,这两个对象才被认为是相等的。该记录类中的所有组件都会被逐一进行比较。 compare 这些方法来自它们对应的包装类(wrapper classes)。
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • value

      public boolean value()
      返回该值的值。 value “record component”(记录组件)。
      Returns:
      the value of the value record component