All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ionos.network.commons.address.Address Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package com.ionos.network.commons.address;

/** A machine- or node-address of some kind.
 * @see AddressComparators
 * @see AddressFormat
 * @see AddressParser
 * @author Stephan Fuhrmann
 * */
public interface Address {

    /**
     * Get a copy of the bytes representing this address.
     *
     * @return a copy of the bytes in this address in network byte order
     * or big endian byte order.
     */
    byte[] getBytes();

    /** Returns the length of the address in bytes.
     * @return the length of the address in bytes. This is the length of the
     * array returned by {@linkplain #getBytes()}.
     * */
    int length();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy