Class FrontCodedStringList

    • Constructor Detail

      • FrontCodedStringList

        public FrontCodedStringList​(Iterator<? extends CharSequence> words,
                                    int ratio,
                                    boolean utf8)
        Creates a new front-coded string list containing the character sequences returned by the given iterator.
        Parameters:
        words - an iterator returning character sequences.
        ratio - the desired ratio.
        utf8 - if true, the strings will be stored as UTF-8 byte arrays.
      • FrontCodedStringList

        public FrontCodedStringList​(Collection<? extends CharSequence> c,
                                    int ratio,
                                    boolean utf8)
        Creates a new front-coded string list containing the character sequences contained in the given collection.
        Parameters:
        c - a collection containing character sequences.
        ratio - the desired ratio.
        utf8 - if true, the strings will be stored as UTF-8 byte arrays.