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

com.hp.autonomy.aci.content.identifier.reference.References Maven / Gradle / Ivy

Go to download

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

There is a newer version: 4.2.0
Show newest version
/*
 * Copyright 2009-2015 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */
package com.hp.autonomy.aci.content.identifier.reference;

import com.hp.autonomy.aci.content.identifier.DocumentIdentifiers;

/**
 * A representation of a set of document references.
 */
public interface References extends DocumentIdentifiers, Iterable {

    /**
     * Combines the references in {@code this} with the specified reference and section number.
     * 

* It is implementation specific whether or not {@code this} is modified or whether a new object is returned * instead. If {@code this} is modified it should also be returned. * * @param reference The reference to append * @param section The section number of the reference to append * @return The combined references object */ References append(String reference, int section); /** * Combines the references in {@code this} with the specified references. *

* It is implementation specific whether or not {@code this} is modified or whether a new object is returned * instead. If {@code this} is modified it should also be returned. * * @param references The references to append * @return The combined references object */ References append(String... references); /** * Combines the references in {@code this} with the specified references. The {@link Iterable} can contain instances * of {@link String} or {@link Reference}. Note that all instances of {@link References} are suitable iterables. *

* It is implementation specific whether or not {@code this} is modified or whether a new object is returned * instead. If {@code this} is modified it should also be returned. * * @param references The reference to append * @return The combined references object */ References append(Iterable... references); /** * The number of references. * * @return The size */ int size(); /** * {@code References} objects are considered equal if their {@code String} representations are equal. * * @param obj An object to test for equality * @return {@code true} if and only if {@code obj} is a {@code References} object with the same {@code toString()} * value as this object. */ @Override boolean equals(Object obj); /** * The hashcode should be that of the {@code String} representation. * * @return The hashcode of the {@code String} representation. */ @Override int hashCode(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy