Module inet.ipaddr

Interface IPAddressStringWriter<T extends IPAddressStringDivisionSeries>

All Superinterfaces:
AddressDivisionWriter

public interface IPAddressStringWriter<T extends IPAddressStringDivisionSeries> extends AddressDivisionWriter
An object for writing an IP address part string in a specific format.
Author:
sfoley
  • Method Details

    • getTrailingSeparatorCount

      int getTrailingSeparatorCount(T addr)
      Parameters:
      addr -
      Returns:
      the number of segment separators in the string produced by these params
    • getTrailingSegmentSeparator

      char getTrailingSegmentSeparator()
    • toString

      String toString(T addr)
      Parameters:
      addr -
      Returns:
      the string produced by these params
    • toString

      String toString(T addr, CharSequence zone)
      Parameters:
      addr -
      Returns:
      the string produced by these params