Class 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
    A FrontCodedStringBigList whose indices are permuted.

    This class is functionally identical to PermutedFrontCodedStringList, except for the larger size allowed.

    See Also:
    FrontCodedStringList, PermutedFrontCodedStringList, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectBigList

        it.unimi.dsi.fastutil.objects.AbstractObjectBigList.ObjectRandomAccessSubList<K extends java.lang.Object>, it.unimi.dsi.fastutil.objects.AbstractObjectBigList.ObjectSubList<K extends java.lang.Object>
    • 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
      • Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectBigList

        addAll, addAll, addAll, addAll, getElements, setElements, setElements, spliterator
      • Methods inherited from interface it.unimi.dsi.fastutil.Stack

        isEmpty
    • Field Detail

      • 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 interface it.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 interface it.unimi.dsi.fastutil.Size64
      • listIterator

        public it.unimi.dsi.fastutil.objects.ObjectBigListIterator<java.lang.CharSequence> listIterator​(long k)
        Specified by:
        listIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.CharSequence>
        Specified by:
        listIterator in interface it.unimi.dsi.fastutil.objects.ObjectBigList<java.lang.CharSequence>
        Overrides:
        listIterator in class it.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