Java 类com.google.common.collect.MultimapBuilder.MultimapBuilderWithKeys 实例源码

项目:guava-mock    文件:MultimapBuilderTest.java   
@GwtIncompatible // serialization
public void testSerialization() throws Exception {
  for (MultimapBuilderWithKeys<?> builderWithKeys : ImmutableList.of(
      MultimapBuilder.hashKeys(), MultimapBuilder.linkedHashKeys(), MultimapBuilder.treeKeys(),
      MultimapBuilder.enumKeys(RoundingMode.class))) {
    for (MultimapBuilder<?, ?> builder : ImmutableList.of(
        builderWithKeys.arrayListValues(),
        builderWithKeys.linkedListValues(),
        builderWithKeys.hashSetValues(),
        builderWithKeys.linkedHashSetValues(),
        builderWithKeys.treeSetValues(),
        builderWithKeys.enumSetValues(RoundingMode.class))) {
      /*
       * Temporarily inlining SerializableTester here for obscure internal reasons.
       */
      reserializeAndAssert(builder.build());
    }
  }
}
项目:googles-monorepo-demo    文件:MultimapBuilderTest.java   
@GwtIncompatible // serialization
public void testSerialization() throws Exception {
  for (MultimapBuilderWithKeys<?> builderWithKeys : ImmutableList.of(
      MultimapBuilder.hashKeys(), MultimapBuilder.linkedHashKeys(), MultimapBuilder.treeKeys(),
      MultimapBuilder.enumKeys(RoundingMode.class))) {
    for (MultimapBuilder<?, ?> builder : ImmutableList.of(
        builderWithKeys.arrayListValues(),
        builderWithKeys.linkedListValues(),
        builderWithKeys.hashSetValues(),
        builderWithKeys.linkedHashSetValues(),
        builderWithKeys.treeSetValues(),
        builderWithKeys.enumSetValues(RoundingMode.class))) {
      /*
       * Temporarily inlining SerializableTester here for obscure internal reasons.
       */
      reserializeAndAssert(builder.build());
    }
  }
}
项目:guava-libraries    文件:MultimapBuilderTest.java   
@GwtIncompatible("serialization")
public void testSerialization() throws Exception {
  for (MultimapBuilderWithKeys<?> builderWithKeys : ImmutableList.of(
      MultimapBuilder.hashKeys(), MultimapBuilder.linkedHashKeys(), MultimapBuilder.treeKeys(),
      MultimapBuilder.enumKeys(RoundingMode.class))) {
    for (MultimapBuilder<?, ?> builder : ImmutableList.of(
        builderWithKeys.arrayListValues(),
        builderWithKeys.linkedListValues(),
        builderWithKeys.hashSetValues(),
        builderWithKeys.linkedHashSetValues(),
        builderWithKeys.treeSetValues(),
        builderWithKeys.enumSetValues(RoundingMode.class))) {
      /*
       * Temporarily inlining SerializableTester here for obscure internal reasons.
       */
      reserializeAndAssert(builder.build());
    }
  }
}
项目:guava    文件:MultimapBuilderTest.java   
@GwtIncompatible // serialization
public void testSerialization() throws Exception {
  for (MultimapBuilderWithKeys<?> builderWithKeys :
      ImmutableList.of(
          MultimapBuilder.hashKeys(),
          MultimapBuilder.linkedHashKeys(),
          MultimapBuilder.treeKeys(),
          MultimapBuilder.enumKeys(RoundingMode.class))) {
    for (MultimapBuilder<?, ?> builder :
        ImmutableList.of(
            builderWithKeys.arrayListValues(),
            builderWithKeys.linkedListValues(),
            builderWithKeys.hashSetValues(),
            builderWithKeys.linkedHashSetValues(),
            builderWithKeys.treeSetValues(),
            builderWithKeys.enumSetValues(RoundingMode.class))) {
      /*
       * Temporarily inlining SerializableTester here for obscure internal reasons.
       */
      reserializeAndAssert(builder.build());
    }
  }
}
项目:guava    文件:MultimapBuilderTest.java   
@GwtIncompatible // serialization
public void testSerialization() throws Exception {
  for (MultimapBuilderWithKeys<?> builderWithKeys :
      ImmutableList.of(
          MultimapBuilder.hashKeys(),
          MultimapBuilder.linkedHashKeys(),
          MultimapBuilder.treeKeys(),
          MultimapBuilder.enumKeys(RoundingMode.class))) {
    for (MultimapBuilder<?, ?> builder :
        ImmutableList.of(
            builderWithKeys.arrayListValues(),
            builderWithKeys.linkedListValues(),
            builderWithKeys.hashSetValues(),
            builderWithKeys.linkedHashSetValues(),
            builderWithKeys.treeSetValues(),
            builderWithKeys.enumSetValues(RoundingMode.class))) {
      /*
       * Temporarily inlining SerializableTester here for obscure internal reasons.
       */
      reserializeAndAssert(builder.build());
    }
  }
}