class SortedLabels {

    @Override
    public boolean equals( Object obj )
    {
        if ( obj instanceof SortedLabels )
        {
            long[] input = ((SortedLabels) obj).all();
            return Arrays.equals( labels, input );
        }
        return false;
    }

    private  SortedLabels( long[] labels );

}