Top Description Fields Constructors Methods
com.oracle.bmc

public Class OCID

extends Object
Class Inheritance
Annotations
@InternalSdk
Imports
java.util.regex.Pattern, com.oracle.bmc.util.internal.StringUtils

Oracle Cloud Infrastructure unique ID.

See documentation.

Field Summary

Modifier and TypeField and Description
private static final Pattern

Constructor Summary

AccessConstructor and Description
public
OCID()

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if it matches teh pattern, false if not.
isValid
(String
The string to test.
ocid
)

Test if the given OCID matches the expected pattern for OCIDs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

OCID_PATTERNback to summary
private static final Pattern OCID_PATTERN

Constructor Detail

OCIDback to summary
public OCID()

Method Detail

isValidback to summary
public static boolean isValid(String ocid)

Test if the given OCID matches the expected pattern for OCIDs.

Parameters
ocid:String

The string to test.

Returns:boolean

true if it matches teh pattern, false if not.