你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IpVersion Class

public final class IpVersion
extends ExpandableStringEnum<IpVersion>

IP address version.

Field Summary

Modifier and Type Field and Description
static final IpVersion IPV4

Static value IPv4 for IpVersion.

static final IpVersion IPV6

Static value IPv6 for IpVersion.

Constructor Summary

Constructor Description
IpVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of IpVersion value.

Method Summary

Modifier and Type Method and Description
static IpVersion fromString(String name)

Creates or finds a IpVersion from its string representation.

static Collection<IpVersion> values()

Gets known IpVersion values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

IPV4

public static final IpVersion IPV4

Static value IPv4 for IpVersion.

IPV6

public static final IpVersion IPV6

Static value IPv6 for IpVersion.

Constructor Details

IpVersion

@Deprecated
public IpVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of IpVersion value.

Method Details

fromString

public static IpVersion fromString(String name)

Creates or finds a IpVersion from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding IpVersion.

values

public static Collection<IpVersion> values()

Gets known IpVersion values.

Returns:

known IpVersion values.

Applies to