Class TextFormat.Printer.MapEntryAdapter

  • All Implemented Interfaces:
    java.lang.Comparable<TextFormat.Printer.MapEntryAdapter>
    Enclosing class:
    TextFormat.Printer

    private static class TextFormat.Printer.MapEntryAdapter
    extends java.lang.Object
    implements java.lang.Comparable<TextFormat.Printer.MapEntryAdapter>
    An adapter class that can take a MapEntry or a MutableMapEntry and returns its key and entry. This class is created solely for the purpose of sorting map entries by its key and prevent duplicated logic by having a separate comparator for MapEntry and MutableMapEntry.