package org.batfish.representation.juniper;

import java.io.Serializable;
import java.util.Map;
import java.util.TreeMap;
import org.batfish.datamodel.Prefix;

public class RoutingInformationBase implements Serializable {

  public static final String RIB_IPV4_MPLS = "inet.3";

  public static final String RIB_IPV4_MULTICAST = "inet.1";

  public static final String RIB_IPV4_UNICAST = "inet.0";

  public static final String RIB_IPV6_UNICAST = "inet6.0";

  public static final String RIB_ISIS = "iso.0";

  public static final String RIB_MPLS = "mpls.0";

  /** */
  private static final long serialVersionUID = 1L;

  private Map<Prefix, AggregateRoute> _aggregateRoutes;

  private Map<Prefix, GeneratedRoute> _generatedRoutes;

  private String _name;

  private Map<Prefix, StaticRoute> _staticRoutes;

  public RoutingInformationBase(String name) {
    _name = name;
    _aggregateRoutes = new TreeMap<>();
    _generatedRoutes = new TreeMap<>();
    _staticRoutes = new TreeMap<>();
  }

  public Map<Prefix, AggregateRoute> getAggregateRoutes() {
    return _aggregateRoutes;
  }

  public Map<Prefix, GeneratedRoute> getGeneratedRoutes() {
    return _generatedRoutes;
  }

  public String getName() {
    return _name;
  }

  public Map<Prefix, StaticRoute> getStaticRoutes() {
    return _staticRoutes;
  }
}

@@ -111,24 +111,57 @@
 il.TreeMap;%0A
+import javax.annotation.Nonnull;%0A
 import org.b
@@ -186,16 +186,37 @@
 refix;%0A%0A
+/** A Juniper RIB */%0A
 public c
@@ -325,17 +325,16 @@
 net.3%22;%0A
-%0A
   public
@@ -385,17 +385,16 @@
 net.1%22;%0A
-%0A
   public
@@ -439,25 +439,24 @@
 = %22inet.0%22;%0A
-%0A
   public sta
@@ -498,25 +498,24 @@
  %22inet6.0%22;%0A
-%0A
   public sta
@@ -551,17 +551,16 @@
 iso.0%22;%0A
-%0A
   public
@@ -606,17 +606,8 @@
 %22;%0A%0A
-  /** */%0A
   pr
@@ -656,32 +656,38 @@
  1L;%0A%0A  private 
+final 
 Map%3CPrefix, Aggr
@@ -708,33 +708,32 @@
 ggregateRoutes;%0A
-%0A
   private Map%3CPr
@@ -718,32 +718,38 @@
 utes;%0A  private 
+final 
 Map%3CPrefix, Gene
@@ -778,17 +778,16 @@
 Routes;%0A
-%0A
   privat
@@ -788,16 +788,22 @@
 private 
+final 
 String _
@@ -808,17 +808,16 @@
  _name;%0A
-%0A
   privat
@@ -818,16 +818,22 @@
 private 
+final 
 Map%3CPref
@@ -897,16 +897,25 @@
 ionBase(
+@Nonnull 
 String n
@@ -1057,24 +1057,35 @@
 p%3C%3E();%0A  %7D%0A%0A
+  @Nonnull%0A
   public Map
@@ -1158,32 +1158,43 @@
 ateRoutes;%0A  %7D%0A%0A
+  @Nonnull%0A
   public Map%3CPre
@@ -1267,24 +1267,35 @@
 outes;%0A  %7D%0A%0A
+  @Nonnull%0A
   public Str
@@ -1333,16 +1333,27 @@
 e;%0A  %7D%0A%0A
+  @Nonnull%0A
   public

Clean up RoutingInformationBase (#3004)