public InterceptionModelBuilder() { this.methodsIgnoringGlobalInterceptors = ImmutableSet.builder(); this.allInterceptors = ImmutableSet.builder(); this.globalInterceptors = new EnumMap<>(InterceptionType.class); this.methodBoundInterceptors = new EnumMap<>(InterceptionType.class); this.memberInterceptorBindings = ImmutableMap.builder(); }
public InterceptionModelBuilder() { this.methodsIgnoringGlobalInterceptors = ImmutableSet.builder(); this.allInterceptors = ImmutableSet.builder(); this.globalInterceptors = new EnumMap<>(InterceptionType.class); this.methodBoundInterceptors = new EnumMap<>(InterceptionType.class); this.memberInterceptorBindings = ImmutableMap.builder(); }
public InterceptionModelBuilder() { this.methodsIgnoringGlobalInterceptors = ImmutableSet.builder(); this.allInterceptors = ImmutableSet.builder(); this.globalInterceptors = new EnumMap<>(InterceptionType.class); this.methodBoundInterceptors = new EnumMap<>(InterceptionType.class); this.memberInterceptorBindings = ImmutableMap.builder(); }
public InterceptionModelBuilder() { this.methodsIgnoringGlobalInterceptors = ImmutableSet.builder(); this.allInterceptors = ImmutableSet.builder(); this.globalInterceptors = new EnumMap<>(InterceptionType.class); this.methodBoundInterceptors = new EnumMap<>(InterceptionType.class); this.memberInterceptorBindings = ImmutableMap.builder(); }
public InterceptionModelBuilder() { this.methodsIgnoringGlobalInterceptors = ImmutableSet.builder(); this.allInterceptors = ImmutableSet.builder(); this.globalInterceptors = new EnumMap<>(InterceptionType.class); this.methodBoundInterceptors = new EnumMap<>(InterceptionType.class); this.memberInterceptorBindings = ImmutableMap.builder(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
Map<InterceptionType, List<InterceptorClassMetadata<?>>> getGlobalInterceptors() { if (globalInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, List<InterceptorClassMetadata<?>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, List<InterceptorClassMetadata<?>>> entry : globalInterceptors.entrySet()) { builder.put(entry.getKey(), ImmutableList.copyOf(entry.getValue())); } return builder.build(); }
public InterceptionModelBuilder() { this.methodsIgnoringGlobalInterceptors = ImmutableSet.builder(); this.allInterceptors = ImmutableSet.builder(); this.globalInterceptors = new EnumMap<>(InterceptionType.class); this.methodBoundInterceptors = new EnumMap<>(InterceptionType.class); this.memberInterceptorBindings = ImmutableMap.builder(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
Map<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> getMethodBoundInterceptors() { if (methodBoundInterceptors.isEmpty()) { return Collections.emptyMap(); } ImmutableMap.Builder<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> builder = ImmutableMap.builder(); for (Entry<InterceptionType, Map<Method, List<InterceptorClassMetadata<?>>>> entry : methodBoundInterceptors.entrySet()) { ImmutableMap.Builder<Method, List<InterceptorClassMetadata<?>>> metadataBuilder = ImmutableMap.builder(); for (Entry<Method, List<InterceptorClassMetadata<?>>> metadataEntry : entry.getValue().entrySet()) { metadataBuilder.put(metadataEntry.getKey(), ImmutableList.copyOf(metadataEntry.getValue())); } builder.put(entry.getKey(), metadataBuilder.build()); } return builder.build(); }
/** * Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards. * * @param map the given map * @return an immutable map */ public static <K, V> Map<K, V> copyOf(Map<K, V> map) { Preconditions.checkNotNull(map); return ImmutableMap.<K, V> builder().putAll(map).build(); }
/** * Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards. * * @param map the given map * @return an immutable map */ public static <K, V> Map<K, V> copyOf(Map<K, V> map) { Preconditions.checkNotNull(map); return ImmutableMap.<K, V> builder().putAll(map).build(); }
/** * Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards. * * @param map the given map * @return an immutable map */ public static <K, V> Map<K, V> copyOf(Map<K, V> map) { Preconditions.checkNotNull(map); return ImmutableMap.<K, V> builder().putAll(map).build(); }
/** * Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards. * * @param map the given map * @return an immutable map */ public static <K, V> Map<K, V> copyOf(Map<K, V> map) { Preconditions.checkNotNull(map); return ImmutableMap.<K, V> builder().putAll(map).build(); }
/** * Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards. * * @param map the given map * @return an immutable map */ public static <K, V> Map<K, V> copyOf(Map<K, V> map) { Preconditions.checkNotNull(map); return ImmutableMap.<K, V> builder().putAll(map).build(); }
/** * Creates an immutable map. A copy of the given map is used. As a result, it is safe to modify the source map afterwards. * * @param map the given map * @return an immutable map */ public static <K, V> Map<K, V> copyOf(Map<K, V> map) { Preconditions.checkNotNull(map); return ImmutableMap.<K, V> builder().putAll(map).build(); }