Class MutableCodePointTrie.AllSameBlocks

  • Enclosing class:
    MutableCodePointTrie

    private static final class MutableCodePointTrie.AllSameBlocks
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      AllSameBlocks()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(int index, int count, int value)
      Replaces the block which has the lowest reference count.
      (package private) int findMostUsed()  
      (package private) int findOrAdd​(int index, int count, int value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • length

        private int length
      • mostRecent

        private int mostRecent
      • indexes

        private int[] indexes
      • values

        private int[] values
      • refCounts

        private int[] refCounts
    • Constructor Detail

      • AllSameBlocks

        AllSameBlocks()
    • Method Detail

      • findOrAdd

        int findOrAdd​(int index,
                      int count,
                      int value)
      • add

        void add​(int index,
                 int count,
                 int value)
        Replaces the block which has the lowest reference count.
      • findMostUsed

        int findMostUsed()