类 AbstractBuilder<O>

    • 构造器详细资料

      • AbstractBuilder

        public AbstractBuilder()
    • 方法详细资料

      • build

        public final O build()
                      throws Exception
        从接口复制的说明: Builder
        Builds the object and returns it or null.
        指定者:
        build 在接口中 Builder<O>
        返回:
        the Object to be built or null if the implementation allows it.
        抛出:
        Exception - if an error occurred when building the Object
      • getObject

        public final O getObject()
        Gets the object that was built. If it has not been started to build yet an Exception is thrown.
        返回:
        the Object that was built
      • doBuild

        protected abstract O doBuild()
                              throws Exception
        Subclasses should implement this to perform the build.
        返回:
        the object that should be returned by build().
        抛出:
        Exception - if an error occurs