util-naming/src/main/java/com/hpe/caf/naming/Name.java
public String getIndex(final int index)
    {
        if (index < 0 || index >= components.size()) {
            throw new IllegalArgumentException("Index out of bounds");
        }
        return components.get(index);
    }
public String getIndex(final int index)
    {
        if (index < 0 || index >= components.size()) {
            throw new IllegalArgumentException("Index out of bounds");
        }
        return components.get(index);
    }
public String getIndex ( final int index ) { if ( index < 0 || index >= components . size ( ) ) { throw new IllegalArgumentException ( "Index out of bounds" ) ; } return components . get ( index ) ; }
Get the components of the Name at the specified numeric index

@param index the index of the token to return, starting from 0
@return the requested Name component
@throws IllegalArgumentException if you request an index that does not exist
Get the components of the Name at the specified numeric index