final class Ipv6Address extends IpAddress with Ipv6AddressPlatform

Representation of an IPv6 address that works on both the JVM and Scala.js.

Source
Host.scala
Linear Supertypes
Ipv6AddressPlatform, IpAddress, Serializable, Host, Ordered[Host], Comparable[Host], HostPlatform, IpAddressPlatform, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Ipv6Address
  2. Ipv6AddressPlatform
  3. IpAddress
  4. Serializable
  5. Host
  6. Ordered
  7. Comparable
  8. HostPlatform
  9. IpAddressPlatform
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def /(prefixBits: Int): Cidr[Ipv6Address.this.type]

    Constructs a Cidr address from this address.

    Constructs a Cidr address from this address.

    Definition Classes
    IpAddress
  4. def <(that: Host): Boolean
    Definition Classes
    Ordered
  5. def <=(that: Host): Boolean
    Definition Classes
    Ordered
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >(that: Host): Boolean
    Definition Classes
    Ordered
  8. def >=(that: Host): Boolean
    Definition Classes
    Ordered
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def asIpv4: Option[Ipv4Address]

    Narrows this address to an Ipv4Address if that is the underlying type.

    Narrows this address to an Ipv4Address if that is the underlying type.

    Definition Classes
    IpAddress
  11. def asIpv6: Option[Ipv6Address]

    Narrows this address to an Ipv6Address if that is the underlying type.

    Narrows this address to an Ipv6Address if that is the underlying type.

    Definition Classes
    IpAddress
  12. def asMulticast: Option[Multicast[Ipv6Address.this.type]]

    Converts this address to a multicast address, as long as it is in the multicast address range.

    Converts this address to a multicast address, as long as it is in the multicast address range.

    Definition Classes
    IpAddress
  13. def asSourceSpecificMulticast: Option[SourceSpecificMulticast[Ipv6Address.this.type]]

    Converts this address to a source specific multicast address, as long as it is in the source specific multicast address range.

    Converts this address to a source specific multicast address, as long as it is in the source specific multicast address range.

    Definition Classes
    IpAddress
  14. val bytes: Array[Byte]
    Attributes
    protected
    Definition Classes
    Ipv6AddressIpAddress
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  16. def compare(that: Host): Int
    Definition Classes
    Host → Ordered
  17. def compareTo(that: Host): Int
    Definition Classes
    Ordered → Comparable
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(other: Any): Boolean
    Definition Classes
    IpAddress → AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. def fold[A](v4: (Ipv4Address) => A, v6: (Ipv6Address) => A): A

    Converts this address to a value of type A using the supplied functions.

    Converts this address to a value of type A using the supplied functions.

    Definition Classes
    Ipv6AddressIpAddress
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def hashCode(): Int
    Definition Classes
    IpAddress → AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isMulticast: Boolean

    Returns true if this address is in the multicast range.

    Returns true if this address is in the multicast range.

    Definition Classes
    Ipv6AddressIpAddress
  26. def isSourceSpecificMulticast: Boolean

    Returns true if this address is in the source specific multicast range.

    Returns true if this address is in the source specific multicast range.

    Definition Classes
    Ipv6AddressIpAddress
  27. def masked(mask: Ipv6Address): Ipv6Address

    Applies the supplied mask to this address.

    Applies the supplied mask to this address.

    Example:
    1. scala> ipv6"ff3b::1".masked(ipv6"fff0::")
      res0: Ipv6Address = ff30::
  28. def maskedLast(mask: Ipv6Address): Ipv6Address

    Computes the last address in the network identified by applying the supplied mask to this address.

    Computes the last address in the network identified by applying the supplied mask to this address.

    Example:
    1. scala> ipv6"ff3b::1".maskedLast(ipv6"fff0::")
      res0: Ipv6Address = ff3f:ffff:ffff:ffff:ffff:ffff:ffff:ffff
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def next: Ipv6Address

    Gets the IPv6 address after this address, with overflow from ffff:ffff:....:ffff to ::.

    Gets the IPv6 address after this address, with overflow from ffff:ffff:....:ffff to ::.

    Definition Classes
    Ipv6AddressIpAddress
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def previous: Ipv6Address

    Gets the IPv6 address before this address, with underflow from :: to ffff:ffff:....:ffff.

    Gets the IPv6 address before this address, with underflow from :: to ffff:ffff:....:ffff.

    Definition Classes
    Ipv6AddressIpAddress
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toBigInt: BigInt

    Converts this address to a 128-bit unsigned integer.

  36. def toBytes: Array[Byte]

    Converts this address to a network order byte array of either 4 or 16 bytes.

    Converts this address to a network order byte array of either 4 or 16 bytes.

    Definition Classes
    IpAddress
  37. def toMixedString: String

    Converts this address to a string of form x:x:x:x:x:x:a.b.c.d where each x represents 16-bits and a.b.c.d is IPv4 dotted decimal notation.

    Converts this address to a string of form x:x:x:x:x:x:a.b.c.d where each x represents 16-bits and a.b.c.d is IPv4 dotted decimal notation. Consecutive 0 x fields are condensed with ::.

    For example, the IPv4 address 127.0.0.1 can be converted to a compatible IPv6 address via Ipv4Address#toCompatV6, which is represented as the string ::7f00:1 and the mixed string ::127.0.0.1.

    Similarly, 127.0.0.1 can be converted to a mapped V6 address via Ipv4Address#toMappedV6, resulting in ::ffff:7f00:1 and the mixed string ::ffff:127.0.0.1.

    This format is described in RFC4291 section 2.2.3.

    Example:
    1. scala> ipv6"::7f00:1".toMixedString
      res0: String = ::127.0.0.1
      scala> ipv6"ff3b:1234::ffab:7f00:1".toMixedString
      res0: String = ff3b:1234::ffab:127.0.0.1
  38. def toString(): String

    Returns the condensed string representation of the array per RFC5952.

    Returns the condensed string representation of the array per RFC5952.

    Definition Classes
    Ipv6Address → AnyRef → Any
  39. def toUncondensedString: String

    Returns an uncondensed string representation of the array.

  40. def toUriString: String

    Converts this address to a string form that is compatible for use in a URI per RFC3986 (namely, IPv6 addresses are rendered in condensed form and surrounded by brackets).

    Converts this address to a string form that is compatible for use in a URI per RFC3986 (namely, IPv6 addresses are rendered in condensed form and surrounded by brackets).

    Definition Classes
    Ipv6AddressIpAddress
  41. def transform(v4: (Ipv4Address) => Ipv4Address, v6: (Ipv6Address) => Ipv6Address): Ipv6Address.this.type

    Maps a type-preserving function across this IP address.

    Maps a type-preserving function across this IP address.

    Definition Classes
    Ipv6AddressIpAddress
  42. def version: IpVersion

    Returns the version of this address.

    Returns the version of this address.

    Definition Classes
    IpAddress
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Ipv6AddressPlatform

Inherited from IpAddress

Inherited from Serializable

Inherited from Host

Inherited from Ordered[Host]

Inherited from Comparable[Host]

Inherited from HostPlatform

Inherited from IpAddressPlatform

Inherited from AnyRef

Inherited from Any

Ungrouped