接口 ResultBuilder<T>

  • 类型参数:
    T - result type

    public interface ResultBuilder<T>
    Classes implementing this interface are responsible for building result of specific type from incoming ProtocolEntity objects.
    • 方法详细资料

      • addProtocolEntity

        boolean addProtocolEntity​(ProtocolEntity entity)
        Add ProtocolEntity.
        参数:
        entity - ProtocolEntity object
        返回:
        true - if this builder is ready for building the result; false - if another ProtocolEntity is required
      • build

        T build()
        Build the result using already added protocol instances.
        返回:
        ResultBuilder instance