object Ipv6Address extends Serializable
- Source
- IpAddress.scala
- Alphabetic
- By Inheritance
- Ipv6Address
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MulticastRangeEnd: Ipv6Address
Last IP address in the IPv6 multicast range.
- val MulticastRangeStart: Ipv6Address
First IP address in the IPv6 multicast range.
- val SourceSpecificMulticastRangeEnd: Ipv6Address
Last IP address in the IPv6 source specific multicast range.
- val SourceSpecificMulticastRangeStart: Ipv6Address
First IP address in the IPv6 source specific multicast range.
- def apply(value: String): Option[Ipv6Address]
Parses an IPv6 address from a string in RFC4291 notation, returning
None
if the string is not a valid IPv6 address. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromBigInt(value: BigInt): Ipv6Address
Constructs an IPv6 address from a
BigInt
, using the lower 128-bits. - def fromBytes(b0: Int, b1: Int, b2: Int, b3: Int, b4: Int, b5: Int, b6: Int, b7: Int, b8: Int, b9: Int, b10: Int, b11: Int, b12: Int, b13: Int, b14: Int, b15: Int): Ipv6Address
Constructs an address from the specified 16 bytes.
Constructs an address from the specified 16 bytes.
Each byte is represented as an
Int
to avoid having to manually call.toByte
on each value -- thetoByte
call is done inside this function. - def fromBytes(bytes: Array[Byte]): Option[Ipv6Address]
Constructs an IPv6 address from a 16-element byte array.
Constructs an IPv6 address from a 16-element byte array. Returns
Some
when array is exactly 16-bytes andNone
otherwise. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mask(bits: Int): Ipv6Address
Computes a mask by setting the first / left-most
n
bits high.Computes a mask by setting the first / left-most
n
bits high.scala> Ipv6Address.mask(32) res0: Ipv6Address = ffff:ffff::
Example: - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()