Class MaskUtil


  • public final class MaskUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getAddressStringForIpPrefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)  
      static java.lang.String getAddressStringForIpv4Prefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Prefix prefix)  
      static java.lang.String getAddressStringForIpv6Prefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6Prefix prefix)  
      static short getMaskForAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)  
      static short getMaskForAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)  
      static short getMaskForIpPrefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)  
      static int getMaxMask​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)  
      static java.lang.String getPrefixAddress​(java.lang.String prefix)  
      static java.lang.String getPrefixMask​(java.lang.String prefix)  
      static boolean isMaskable​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)  
      static boolean isMaskable​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)  
      static Eid normalize​(Eid eid)  
      static Eid normalize​(Eid eid, short mask)  
      static byte[] normalizeByteArray​(byte[] address, short maskLength)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isMaskable

        public static boolean isMaskable​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
      • isMaskable

        public static boolean isMaskable​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
      • getPrefixAddress

        public static java.lang.String getPrefixAddress​(java.lang.String prefix)
      • getPrefixMask

        public static java.lang.String getPrefixMask​(java.lang.String prefix)
      • normalize

        public static Eid normalize​(Eid eid,
                                    short mask)
      • normalize

        public static Eid normalize​(Eid eid)
      • normalizeByteArray

        public static byte[] normalizeByteArray​(byte[] address,
                                                short maskLength)
      • getMaxMask

        public static int getMaxMask​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
      • getMaskForIpPrefix

        public static short getMaskForIpPrefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
      • getAddressStringForIpPrefix

        public static java.lang.String getAddressStringForIpPrefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix prefix)
      • getAddressStringForIpv4Prefix

        public static java.lang.String getAddressStringForIpv4Prefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Prefix prefix)
      • getAddressStringForIpv6Prefix

        public static java.lang.String getAddressStringForIpv6Prefix​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6Prefix prefix)
      • getMaskForAddress

        public static short getMaskForAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.SimpleAddress address)
      • getMaskForAddress

        public static short getMaskForAddress​(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)