Package it.unimi.dsi.big.util
Class PermutedFrontCodedStringBigList
- java.lang.Object
-
- java.util.AbstractCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
-
- it.unimi.dsi.fastutil.objects.AbstractObjectBigList<java.lang.CharSequence>
-
- it.unimi.dsi.big.util.PermutedFrontCodedStringBigList
-
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<java.lang.CharSequence>
,it.unimi.dsi.fastutil.objects.ObjectBigList<java.lang.CharSequence>
,it.unimi.dsi.fastutil.objects.ObjectCollection<java.lang.CharSequence>
,it.unimi.dsi.fastutil.objects.ObjectIterable<java.lang.CharSequence>
,it.unimi.dsi.fastutil.Size64
,it.unimi.dsi.fastutil.Stack<java.lang.CharSequence>
,java.io.Serializable
,java.lang.Comparable<it.unimi.dsi.fastutil.BigList<? extends java.lang.CharSequence>>
,java.lang.Iterable<java.lang.CharSequence>
,java.util.Collection<java.lang.CharSequence>
public class PermutedFrontCodedStringBigList extends it.unimi.dsi.fastutil.objects.AbstractObjectBigList<java.lang.CharSequence> implements java.io.Serializable
AFrontCodedStringBigList
whose indices are permuted.This class is functionally identical to
PermutedFrontCodedStringList
, except for the larger size allowed.
-
-
Field Summary
Fields Modifier and Type Field Description protected FrontCodedStringBigList
frontCodedStringBigList
The underlying front-coded string list.protected long[][]
permutation
The permutation.static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description PermutedFrontCodedStringBigList(FrontCodedStringBigList frontCodedStringBihList, long[][] permutation)
Creates a new permuted front-coded string list using a given front-coded string list and permutation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableString
get(long index)
void
get(long index, MutableString s)
Returns the element at the specified position in this front-coded list by storing it in a mutable string.it.unimi.dsi.fastutil.objects.ObjectBigListIterator<java.lang.CharSequence>
listIterator(long k)
static void
main(java.lang.String[] arg)
long
size64()
-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectBigList
add, add, addAll, addAll, addElements, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, getElements, hashCode, indexOf, iterator, lastIndexOf, listIterator, peek, pop, push, remove, removeElements, set, setElements, size, size, subList, top, toString
-
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, 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.Collection
containsAll, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, stream, toArray, toArray, toArray
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
frontCodedStringBigList
protected final FrontCodedStringBigList frontCodedStringBigList
The underlying front-coded string list.
-
permutation
protected final long[][] permutation
The permutation.
-
-
Constructor Detail
-
PermutedFrontCodedStringBigList
public PermutedFrontCodedStringBigList(FrontCodedStringBigList frontCodedStringBihList, long[][] permutation)
Creates a new permuted front-coded string list using a given front-coded string list and permutation.- Parameters:
frontCodedStringBihList
- the underlying front-coded string big list.permutation
- the underlying permutation (a big array of longs).
-
-
Method Detail
-
get
public MutableString get(long index)
- Specified by:
get
in interfaceit.unimi.dsi.fastutil.BigList<java.lang.CharSequence>
-
get
public void get(long index, MutableString s)
Returns the element at the specified position in this front-coded list by storing it in a mutable string.- Parameters:
index
- an index in the list.s
- a mutable string that will contain the string at the specified position.
-
size64
public long size64()
- Specified by:
size64
in interfaceit.unimi.dsi.fastutil.Size64
-
listIterator
public it.unimi.dsi.fastutil.objects.ObjectBigListIterator<java.lang.CharSequence> listIterator(long k)
- Specified by:
listIterator
in interfaceit.unimi.dsi.fastutil.BigList<java.lang.CharSequence>
- Specified by:
listIterator
in interfaceit.unimi.dsi.fastutil.objects.ObjectBigList<java.lang.CharSequence>
- Overrides:
listIterator
in classit.unimi.dsi.fastutil.objects.AbstractObjectBigList<java.lang.CharSequence>
-
main
public static void main(java.lang.String[] arg) throws java.io.IOException, java.lang.ClassNotFoundException, com.martiansoftware.jsap.JSAPException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
com.martiansoftware.jsap.JSAPException
-
-