/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Helper class to ease the work with the lists of atoms.
*/
class XAtomList {
/**
* Creates empty list.
*/
public XAtomList() {
}
/**
* Creates instance of XAtomList and initializes it with
* the contents pointer by <code>data</code>.
* Uses default display to initialize atoms.
*/
}
for (int i = 0; i < count; i++) {
}
}
/**
* Creates instance of XAtomList and initializes it with
* the arrays of atoms. Array can contain null atoms.
*/
}
}
}
/**
* Returns contents of the list as array of atoms.
*/
int i = 0;
}
return res;
}
/**
* Returns contents of the list as pointer to native data
* The size of the native data is size of the list multiplied by
* size of the Atom type on the platform. Caller is responsible for
* freeing the data by Unsafe.freeMemory when it is no longer needed.
*/
public long getAtomsData() {
}
/**
* Returns true if this list contains the atom <code>atom</code>
*/
}
/**
* Add atom to the list. Does nothing if list already contains this atom.
*/
}
/**
* Removes atom from the list. Does nothing if arrays doesn't conaint this atom.
*/
}
/**
* Returns size of the list
*/
public int size() {
}
/**
* Returns a subset of a list which is intersection of this set and set build by mapping <code>mask</code> in
* <code>mapping</code>.
*/
}
}
}
return res;
}
/**
* Returns iterator for items.
*/
}
/**
* Merges without duplicates all the atoms from another list
*/
}
}
}
}
}
}