Java 类org.springframework.web.util.HierarchicalUriComponents.PathComponent 实例源码

项目:lams    文件:UriComponentsBuilder.java   
@Override
public PathComponent build() {
    int size = this.componentBuilders.size();
    List<PathComponent> components = new ArrayList<PathComponent>(size);
    for (PathComponentBuilder componentBuilder : this.componentBuilders) {
        PathComponent pathComponent = componentBuilder.build();
        if (pathComponent != null) {
            components.add(pathComponent);
        }
    }
    if (components.isEmpty()) {
        return HierarchicalUriComponents.NULL_PATH_COMPONENT;
    }
    if (components.size() == 1) {
        return components.get(0);
    }
    return new HierarchicalUriComponents.PathComponentComposite(components);
}
项目:spring4-understanding    文件:UriComponentsBuilder.java   
@Override
public PathComponent build() {
    int size = this.builders.size();
    List<PathComponent> components = new ArrayList<PathComponent>(size);
    for (PathComponentBuilder componentBuilder : this.builders) {
        PathComponent pathComponent = componentBuilder.build();
        if (pathComponent != null) {
            components.add(pathComponent);
        }
    }
    if (components.isEmpty()) {
        return HierarchicalUriComponents.NULL_PATH_COMPONENT;
    }
    if (components.size() == 1) {
        return components.get(0);
    }
    return new HierarchicalUriComponents.PathComponentComposite(components);
}
项目:class-guard    文件:UriComponentsBuilder.java   
public PathComponent build() {
    int size = this.componentBuilders.size();
    List<PathComponent> components = new ArrayList<PathComponent>(size);
    for (PathComponentBuilder componentBuilder : this.componentBuilders) {
        PathComponent pathComponent = componentBuilder.build();
        if (pathComponent != null) {
            components.add(pathComponent);
        }
    }
    if (components.isEmpty()) {
        return HierarchicalUriComponents.NULL_PATH_COMPONENT;
    }
    if (components.size() == 1) {
        return components.get(0);
    }
    return new HierarchicalUriComponents.PathComponentComposite(components);
}
项目:lams    文件:UriComponentsBuilder.java   
@Override
public PathComponent build() {
    return (this.pathSegments.isEmpty() ? null :
            new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments));
}
项目:spring4-understanding    文件:UriComponentsBuilder.java   
@Override
public PathComponent build() {
    return (this.pathSegments.isEmpty() ? null :
            new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments));
}
项目:class-guard    文件:UriComponentsBuilder.java   
public PathComponent build() {
    return (this.pathSegments.isEmpty() ? null :
            new HierarchicalUriComponents.PathSegmentComponent(this.pathSegments));
}
项目:lams    文件:UriComponentsBuilder.java   
PathComponent build();
项目:spring4-understanding    文件:UriComponentsBuilder.java   
PathComponent build();
项目:class-guard    文件:UriComponentsBuilder.java   
PathComponent build();