All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hp.autonomy.aci.content.ranges.ParametricFieldRanges Maven / Gradle / Ivy

Go to download

API for representing aspects of IDOL's Content server, including FieldText and document References

The newest version!
/*
 * Copyright 2016-2017 Open Text.
 *
 * Licensed under the MIT License (the "License"); you may not use this file
 * except in compliance with the License.
 *
 * The only warranties for products and services of Open Text and its affiliates
 * and licensors ("Open Text") are as may be set forth in the express warranty
 * statements accompanying such products and services. Nothing herein should be
 * construed as constituting an additional warranty. Open Text shall not be
 * liable for technical or editorial errors or omissions contained herein. The
 * information contained herein is subject to change without notice.
 */

package com.hp.autonomy.aci.content.ranges;

import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang.StringUtils;

import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("WeakerAccess")
public class ParametricFieldRanges {
    private final ArrayList ranges;

    public ParametricFieldRanges(final List ranges) {
        this.ranges = new ArrayList(ListUtils.emptyIfNull(ranges));
    }

    @Override
    public String toString() {
        return ranges.isEmpty()
            ? ""
            : StringUtils.join(ranges, '+');
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy