Record Class Route.Num
java.lang.Object
java.lang.Record
com.google.adk.workflow.Route.Num
- All Implemented Interfaces:
Route
- Enclosing interface:
Route
-
嵌套类概述
Nested classes/interfaces inherited from interface Route
Route.Default, Route.Flag, Route.Num, Route.TagModifier and TypeInterfaceDescriptionstatic enum当节点的其他所有路由路径都无法匹配该节点发送的数据时(包括该节点根本没有发送任何数据的情况),系统会使用“备用路径”(即 fallback path)来进行数据传输。static final record一条由布尔值标识的路由,用于表示双向分支(即数据可以在两个方向上传输)。static final record由一个整数标识的路由。static final record一条路由通过字符串来标识,这是最常见的情况。 -
字段摘要
Fields inherited from interface Route
DEFAULT_ROUTE_SENTINELModifier and TypeFieldDescriptionstatic final String代表……的字符串Route.Default“On the wire” 是一个英语短语,字面意思是“在线上”或“正在传输中”,通常用来描述某项信息或数据正在被发送或传输的过程中。例如: - “The order is on the wire to the supplier.”(订单正在被发送给供应商。) 这个短语强调信息传输的实时性或紧迫性。 -
构造函数概述
Constructors -
方法概述
-
构造函数详细信息
-
Num
public Num(long value) 创建一个……的实例。Num记录类(Record Class)。- Parameters:
value- the value for thevaluerecord component
-
-
方法详细信息(Method Details)
-
toString
-
hashCode
-
equals
用于判断另一个对象是否“等于”当前对象。当另一个对象属于相同的类,并且所有记录组件都相同时,这两个对象才被认为是相等的。该记录类中的所有组件都会被逐一进行比较。compare这些方法来自它们对应的包装类(wrapper classes)。 -
value
public long value()返回该值的值。value“record component”(记录组件)。- Returns:
- the value of the
valuerecord component
-