View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.design.visibilitymodifier;
2   
3   import java.math.BigDecimal;
4   import java.util.ArrayList;
5   import java.util.HashMap;
6   import java.util.Map;
7   import java.util.Optional;
8   
9   import com.google.common.collect.ImmutableMap;
10  
11  public final class InputVisibilityModifierGenerics {
12  
13      public final String name;
14      public final Optional<String> keyword;
15      public final ImmutableMap<String, BigDecimal> uuidMap;
16      public final ImmutableMap<String, ArrayList<Long>> perfSeries; // violation
17      public final ImmutableMap<java.lang.String, ArrayList<Long>> peopleMap; // violation
18      public final ImmutableMap<String, java.util.ArrayList<Long>> someMap; // violation
19      public final ImmutableMap<java.lang.String, java.util.ArrayList<Long>> newMap; // violation
20      public final ImmutableMap<java.lang.String, java.math.BigDecimal> orders;
21      public final Optional<java.lang.Object> optionalOfObject; // violation
22      public final Optional<Object> obj; // violation
23  
24      public String rqUID; // violation
25      public Optional<String> rqTime; // violation
26      public ImmutableMap<String, BigDecimal> rates; // violation
27      public ImmutableMap<String, ArrayList<Long>> loans; // violation
28      public ImmutableMap<java.lang.String, ArrayList<Long>> cards; // violation
29      public ImmutableMap<String, java.util.ArrayList<Long>> values; // violation
30      public ImmutableMap<java.lang.String, java.util.ArrayList<Long>> permissions; // violation
31  
32      public final Map<String, String> mapOfStrings; // violation
33      public final java.util.Map<String, String> names; // violation
34      public final java.util.Map<String, Object> links; // violation
35      public final Map<String, Object> presentations; // violation
36      public final Map<String, java.lang.Object> collection; // violation
37  
38      public final com.google.common.collect.ImmutableMap<String, BigDecimal> prices;
39      public final com.google.common.collect.ImmutableMap<String, Object> exceptions; // violation
40  
41      public InputVisibilityModifierGenerics() {
42          this.name = "John Doe";
43          this.keyword = Optional.empty();
44          this.perfSeries = ImmutableMap.of();
45          this.uuidMap = ImmutableMap.of();
46          this.peopleMap = ImmutableMap.of();
47          this.someMap = ImmutableMap.of();
48          this.newMap = ImmutableMap.of();
49          this.orders = ImmutableMap.of();
50          this.optionalOfObject = Optional.empty();
51          this.obj = Optional.empty();
52          this.mapOfStrings = new HashMap<>(1);
53          this.names = new HashMap<>(1);
54          this.links = new HashMap<>(1);
55          this.presentations = new HashMap<>(1);
56          this.collection = new HashMap<>(1);
57          this.prices = ImmutableMap.of();
58          this.exceptions =  ImmutableMap.of();
59      }
60  }