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

com.hp.autonomy.aci.content.fieldtext.EMPTY Maven / Gradle / Ivy

/*
 * Copyright 2009-2015 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.fieldtext;

import com.hp.autonomy.aci.content.internal.InternalUtils;

import java.util.Arrays;

/**
 * Fieldtext specifier for the EMPTY operator
 */
public class EMPTY extends Specifier {

    /**
     * Constructs a new multiple field EMPTY fieldtext
     * @param field The first field name
     * @param fields Any additional field names
     */
    public EMPTY(final String field, final String... fields) {
        this(InternalUtils.toList(field, fields));
    }

    /**
     * Constructs a new multiple field EMPTY fieldtext
     * @param fields The field names
     */
    public EMPTY(final String[] fields) {
        this(Arrays.asList(fields));
    }

    /**
     * Constructs a new multiple field EMPTY fieldtext
     * @param fields The field names
     */
    public EMPTY(final Iterable fields) {
        super("EMPTY", fields);
    }

    public static EMPTY EMPTY(final String field, final String... fields) {
        return new EMPTY(field, fields);
    }

    public static EMPTY EMPTY(final String[] fields) {
        return new EMPTY(fields);
    }

    public static EMPTY EMPTY(final Iterable fields) {
        return new EMPTY(fields);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy