@Test public void testGetPrefix() { assertThat( ConcreteInterfaceAddress.parse("1.1.1.55/24").getPrefix(), equalTo(Prefix.parse("1.1.1.0/24"))); }
@Nonnull public Prefix getPrefix() { return Prefix.create(_ip, _networkBits); }
ConcreteInterfaceAddress extends InterfaceAddress { @Nonnull public Prefix getPrefix() { return Prefix.create(_ip, _networkBits); } }
ConcreteInterfaceAddress extends InterfaceAddress { @Nonnull public Prefix getPrefix() { return Prefix.create(_ip, _networkBits); } private  ConcreteInterfaceAddress(Ip ip, int networkBits); }
ConcreteInterfaceAddress extends InterfaceAddress { @Nonnull public Prefix getPrefix() { return Prefix.create(_ip, _networkBits); } private  ConcreteInterfaceAddress(Ip ip, int networkBits); static ConcreteInterfaceAddress create(Ip ip, int networkBits); static ConcreteInterfaceAddress create(Ip ip, Ip networkMask); static ConcreteInterfaceAddress parse(String text); @Override int compareTo(InterfaceAddress rhs); @Override boolean equals(@Nullable Object o); @Nonnull Ip getIp(); int getNetworkBits(); @Nonnull Prefix getPrefix(); @Override int hashCode(); @Override @JsonValue String toString(); }
ConcreteInterfaceAddress extends InterfaceAddress { @Nonnull public Prefix getPrefix() { return Prefix.create(_ip, _networkBits); } private  ConcreteInterfaceAddress(Ip ip, int networkBits); static ConcreteInterfaceAddress create(Ip ip, int networkBits); static ConcreteInterfaceAddress create(Ip ip, Ip networkMask); static ConcreteInterfaceAddress parse(String text); @Override int compareTo(InterfaceAddress rhs); @Override boolean equals(@Nullable Object o); @Nonnull Ip getIp(); int getNetworkBits(); @Nonnull Prefix getPrefix(); @Override int hashCode(); @Override @JsonValue String toString();  }