Sequenceablepublic class IpPrefix extends Object implements Sequenceable
This class provides methods to obtain the following information that determines an IP address segment:
Sequenceable.Producer<T>| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Optional<InetAddress> |
getAddress() |
Returns the first IP address in the prefix.
|
int |
getPrefixLength() |
Returns the prefix length of IpPrefix
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public int getPrefixLength()
public Optional<InetAddress> getAddress()