object Ipv4Address extends Serializable
- Source
- IpAddress.scala
- Alphabetic
- By Inheritance
- Ipv4Address
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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: Ipv4Address
Last IP address in the IPv4 multicast range.
-
val
MulticastRangeStart: Ipv4Address
First IP address in the IPv4 multicast range.
-
val
SourceSpecificMulticastRangeEnd: Ipv4Address
Last IP address in the IPv4 source specific multicast range.
-
val
SourceSpecificMulticastRangeStart: Ipv4Address
First IP address in the IPv4 source specific multicast range.
-
def
apply(value: String): Option[Ipv4Address]
Parses an IPv4 address from a dotted-decimal string, returning
Noneif the string is not a valid IPv4 address. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromBytes(a: Int, b: Int, c: Int, d: Int): Ipv4Address
Constructs an address from the specified 4 bytes.
Constructs an address from the specified 4 bytes.
Each byte is represented as an
Intto avoid having to manually call.toByteon each value -- thetoBytecall is done inside this function. -
def
fromBytes(bytes: Array[Byte]): Option[Ipv4Address]
Constructs an IPv4 address from a 4-element byte array.
Constructs an IPv4 address from a 4-element byte array. Returns
Somewhen array is exactly 4-bytes andNoneotherwise. -
def
fromLong(value: Long): Ipv4Address
Constructs an IPv4 address from a
Long, using the lower 32-bits. -
final
def
getClass(): Class[_]
- 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): Ipv4Address
Computes a mask by setting the first / left-most
nbits high.Computes a mask by setting the first / left-most
nbits high.scala> Ipv4Address.mask(16) res0: Ipv4Address = 255.255.0.0
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )