SplitDocument( int id, @Nonnull DocStructure structure, @Nonnull Table<SubDocType, Integer, SubDocument> subDocuments, @Nonnull Multimap<SubDocType, DocStructure> structures) { this.id = id; this.root = structure; this.subDocuments = Tables.unmodifiableTable(subDocuments); this.structures = Multimaps.unmodifiableMultimap(structures); }
public void testOrderingUnmodifiable() { Multimap<String, Integer> multimap = initializeMultimap5(); assertOrderingReadOnly(Multimaps.unmodifiableMultimap(multimap)); }