Class/Object

com.comcast.ip4s

Ipv6Address

Related Docs: object Ipv6Address | package ip4s

Permalink

final class Ipv6Address extends IpAddress with Ipv6AddressPlatform

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

Source
IpAddress.scala
Linear Supertypes
Ipv6AddressPlatform, IpAddress, Serializable, Serializable, IpAddressPlatform, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Ipv6Address
  2. Ipv6AddressPlatform
  3. IpAddress
  4. Serializable
  5. Serializable
  6. IpAddressPlatform
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to any2stringadd[Ipv6Address] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Ipv6Address, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to ArrowAssoc[Ipv6Address] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def /(prefixBits: Int): Cidr[Ipv6Address.this.type]

    Permalink

    Constructs a Cidr address from this address.

    Constructs a Cidr address from this address.

    Definition Classes
    IpAddress
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asIpv4: Option[Ipv4Address]

    Permalink

    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
  9. def asIpv6: Option[Ipv6Address]

    Permalink

    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
  10. def asMulticast: Option[Multicast[Ipv6Address.this.type]]

    Permalink

    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
  11. def asSourceSpecificMulticast: Option[SourceSpecificMulticast[Ipv6Address.this.type]]

    Permalink

    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
  12. val bytes: Array[Byte]

    Permalink
    Attributes
    protected
    Definition Classes
    Ipv6AddressIpAddress
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def ensuring(cond: (Ipv6Address) ⇒ Boolean, msg: ⇒ Any): Ipv6Address

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to Ensuring[Ipv6Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (Ipv6Address) ⇒ Boolean): Ipv6Address

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to Ensuring[Ipv6Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): Ipv6Address

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to Ensuring[Ipv6Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): Ipv6Address

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to Ensuring[Ipv6Address] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    IpAddress → AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def fold[A](v4: (Ipv4Address) ⇒ A, v6: (Ipv6Address) ⇒ A): A

    Permalink

    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. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to StringFormat[Ipv6Address] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    IpAddress → AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def isMulticast: Boolean

    Permalink

    Returns true if this address is in the multicast range.

    Returns true if this address is in the multicast range.

    Definition Classes
    Ipv6AddressIpAddress
  27. def isSourceSpecificMulticast: Boolean

    Permalink

    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
  28. def masked(mask: Ipv6Address): Ipv6Address

    Permalink

    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::
  29. def maskedLast(mask: Ipv6Address): Ipv6Address

    Permalink

    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
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def next: Ipv6Address

    Permalink

    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
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def previous: Ipv6Address

    Permalink

    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
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toBigInt: BigInt

    Permalink

    Converts this address to a 128-bit unsigned integer.

  37. def toBytes: Array[Byte]

    Permalink

    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
  38. def toMixedString: String

    Permalink

    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
  39. def toString(): String

    Permalink

    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
  40. def toUncondensedString: String

    Permalink

    Returns an uncondensed string representation of the array.

  41. def toUriString: String

    Permalink

    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
  42. def transform(v4: (Ipv4Address) ⇒ Ipv4Address, v6: (Ipv6Address) ⇒ Ipv6Address): Ipv6Address.this.type

    Permalink

    Maps a type-preserving function across this IP address.

    Maps a type-preserving function across this IP address.

    Definition Classes
    Ipv6AddressIpAddress
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def [B](y: B): (Ipv6Address, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Ipv6Address to ArrowAssoc[Ipv6Address] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Ipv6AddressPlatform

Inherited from IpAddress

Inherited from Serializable

Inherited from Serializable

Inherited from IpAddressPlatform

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Ipv6Address to any2stringadd[Ipv6Address]

Inherited by implicit conversion StringFormat from Ipv6Address to StringFormat[Ipv6Address]

Inherited by implicit conversion Ensuring from Ipv6Address to Ensuring[Ipv6Address]

Inherited by implicit conversion ArrowAssoc from Ipv6Address to ArrowAssoc[Ipv6Address]

Ungrouped