|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectList<CharSequence>
it.unimi.dsi.mg4j.util.PermutedFrontCodedStringList
dsiutils
.
@Deprecated public class PermutedFrontCodedStringList
A FrontCodedStringList
whose indices are permuted.
It may happen that a list of strings compresses very well
using front coding, but unfortunately alphabetical order is not
the right order for the strings in the list. Instances of this class
wrap an instance of FrontCodedStringList
together with a permutation π: inquiries with index i will
actually return the string with index πi.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList |
---|
AbstractObjectList.ObjectSubList<K> |
Field Summary | |
---|---|
protected FrontCodedStringList |
frontCodedStringList
Deprecated. The underlying front-coded string list. |
protected int[] |
permutation
Deprecated. The permutation. |
static long |
serialVersionUID
Deprecated. |
Constructor Summary | |
---|---|
PermutedFrontCodedStringList(FrontCodedStringList frontCodedStringList,
int[] permutation)
Deprecated. Creates a new permuted front-coded string list using a given front-coded string list and permutation. |
Method Summary | |
---|---|
CharSequence |
get(int index)
Deprecated. |
void |
get(int index,
MutableString s)
Deprecated. Returns the element at the specified position in this front-coded list by storing it in a mutable string. |
ObjectListIterator<CharSequence> |
listIterator(int k)
Deprecated. |
static void |
main(String[] arg)
Deprecated. |
int |
size()
Deprecated. |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList |
---|
add, add, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, objectListIterator, objectListIterator, objectSubList, peek, pop, push, remove, removeElements, set, size, subList, top, toString |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection |
---|
clear, containsAll, isEmpty, objectIterator, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
clear, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectCollection |
---|
objectIterator, toArray |
Methods inherited from interface it.unimi.dsi.fastutil.Stack |
---|
isEmpty |
Field Detail |
---|
public static final long serialVersionUID
protected final FrontCodedStringList frontCodedStringList
protected final int[] permutation
Constructor Detail |
---|
public PermutedFrontCodedStringList(FrontCodedStringList frontCodedStringList, int[] permutation)
frontCodedStringList
- the underlying front-coded string list.permutation
- the underlying permutation.Method Detail |
---|
public CharSequence get(int index)
get
in interface List<CharSequence>
public void get(int index, MutableString s)
index
- an index in the list.s
- a mutable string that will contain the string at the specified position.public int size()
size
in interface Collection<CharSequence>
size
in interface List<CharSequence>
public ObjectListIterator<CharSequence> listIterator(int k)
listIterator
in interface ObjectList<CharSequence>
listIterator
in interface List<CharSequence>
listIterator
in class AbstractObjectList<CharSequence>
public static void main(String[] arg) throws IOException, ClassNotFoundException, com.martiansoftware.jsap.JSAPException
IOException
ClassNotFoundException
com.martiansoftware.jsap.JSAPException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |