Interface IIPv6AddressItem

All Superinterfaces:
IAnyAtomicItem, IAtomicValuedItem, ICollectionValue, IIPAddressItem, IItem

public interface IIPv6AddressItem extends IIPAddressItem
An atomic Metapath item containing an IPv6 address data value.
  • Method Details

    • type

      @NonNull static IAtomicOrUnionType<IIPv6AddressItem> type()
      Get the type information for this item.
      Returns:
      the type information
    • getType

      Description copied from interface: IItem
      Get the type information for the item.
      Specified by:
      getType in interface IIPAddressItem
      Specified by:
      getType in interface IItem
      Returns:
      the item's type information
    • valueOf

      @NonNull static IIPv6AddressItem valueOf(@NonNull String value)
      Construct a new IPv6 item using the provided value.
      Parameters:
      value - an IPv6 value
      Returns:
      the new item
    • valueOf

      @NonNull static IIPv6AddressItem valueOf(@NonNull inet.ipaddr.ipv6.IPv6Address value)
      Construct a new IPv6 item using the provided value.
      Parameters:
      value - an IPv6 value
      Returns:
      the new item
    • cast

      @NonNull static IIPv6AddressItem cast(@NonNull IAnyAtomicItem item)
      Cast the provided type to this item type.
      Parameters:
      item - the item to cast
      Returns:
      the original item if it is already this type, otherwise a new item cast to this type
      Throws:
      InvalidValueForCastFunctionException - if the provided item cannot be cast to this type
    • getValue

      inet.ipaddr.ipv6.IPv6Address getValue()
      Description copied from interface: IAnyAtomicItem
      Get the "wrapped" value represented by this item.
      Specified by:
      getValue in interface IAnyAtomicItem
      Specified by:
      getValue in interface IItem
      Returns:
      the value
    • castAsType

      default IIPv6AddressItem castAsType(IAnyAtomicItem item)
      Description copied from interface: IAnyAtomicItem
      Cast the provided item to be the same type as this item.
      Specified by:
      castAsType in interface IAnyAtomicItem
      Parameters:
      item - the item to cast
      Returns:
      an atomic item of this type