1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2008 Google Inc. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 package com.google.protobuf; 9 10 import java.util.List; 11 12 /** 13 * A base class for package private shared methods between MapField and MapFieldBuilder to allow 14 * reflection to access both. 15 */ 16 public abstract class MapFieldReflectionAccessor { 17 /** Gets the content of this MapField as a list of read-only values. */ getList()18 abstract List<Message> getList(); 19 20 /** Gets a mutable List view of this MapField. */ getMutableList()21 abstract List<Message> getMutableList(); 22 23 /** Gets the default instance of the message stored in the list view of this map field. */ getMapEntryMessageDefaultInstance()24 abstract Message getMapEntryMessageDefaultInstance(); 25 } 26