azure-docs-sdk-java/docs-ref-autogen/com.microsoft.cognitiveserv...

164 строки
7.5 KiB
YAML

### YamlMime:ManagedReference
items:
- uid: com.microsoft.cognitiveservices.speech.util._contracts
id: _contracts
parent: com.microsoft.cognitiveservices.speech.util
children:
- com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalLanguage(String,String)
- com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalSubscriptionKey(String,String)
- com.microsoft.cognitiveservices.speech.util._contracts.throwIfNull(Object,String)
- com.microsoft.cognitiveservices.speech.util._contracts.throwIfNullOrWhitespace(String,String)
href: com.microsoft.cognitiveservices.speech.util._contracts.yml
langs:
- java
name: Contracts
nameWithType: Contracts
fullName: com.microsoft.cognitiveservices.speech.util.Contracts
type: Class
source:
remote: &o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/Contracts.java
branch: javadocs
repo: https://msasg.visualstudio.com/DefaultCollection/Skyman/_git/Carbon
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/Contracts.java
startLine: 10
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Contract helper </p>
syntax:
content: public class Contracts
inheritance:
- java.lang.Object
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalLanguage(String,String)
id: throwIfIllegalLanguage(String,String)
parent: com.microsoft.cognitiveservices.speech.util._contracts
href: com.microsoft.cognitiveservices.speech.util._contracts.yml
langs:
- java
name: throwIfIllegalLanguage(String language, String message)
nameWithType: Contracts.throwIfIllegalLanguage(String language, String message)
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfIllegalLanguage(String language, String message)
overload: com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalLanguage*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/Contracts.java
startLine: 43
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Checks if the language is a valid identifier. </p>
syntax:
content: public static void throwIfIllegalLanguage(String language, String message)
parameters:
- id: language
type: "26831127"
description: <p>The language identifier to test, e.g. "en-US" </p>
- id: message
type: "26831127"
description: <p>The error message in case obj is null. </p>
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalSubscriptionKey(String,String)
id: throwIfIllegalSubscriptionKey(String,String)
parent: com.microsoft.cognitiveservices.speech.util._contracts
href: com.microsoft.cognitiveservices.speech.util._contracts.yml
langs:
- java
name: throwIfIllegalSubscriptionKey(String subscription, String message)
nameWithType: Contracts.throwIfIllegalSubscriptionKey(String subscription, String message)
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfIllegalSubscriptionKey(String subscription, String message)
overload: com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalSubscriptionKey*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/Contracts.java
startLine: 54
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Checks if the subscription is a valid identifier. </p>
syntax:
content: public static void throwIfIllegalSubscriptionKey(String subscription, String message)
parameters:
- id: subscription
type: "26831127"
description: <p>The subscription key to test, usually in the form of a guid </p>
- id: message
type: "26831127"
description: <p>The error message in case obj is null. </p>
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfNull(Object,String)
id: throwIfNull(Object,String)
parent: com.microsoft.cognitiveservices.speech.util._contracts
href: com.microsoft.cognitiveservices.speech.util._contracts.yml
langs:
- java
name: throwIfNull(Object obj, String message)
nameWithType: Contracts.throwIfNull(Object obj, String message)
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfNull(Object obj, String message)
overload: com.microsoft.cognitiveservices.speech.util._contracts.throwIfNull*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/Contracts.java
startLine: 16
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Checks if the argument is null, if yes, throws a NullPointerException </p>
syntax:
content: public static void throwIfNull(Object obj, String message)
parameters:
- id: obj
type: "79317049"
description: <p>The object to test for null. </p>
- id: message
type: "26831127"
description: <p>The error message in case obj is null. </p>
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfNullOrWhitespace(String,String)
id: throwIfNullOrWhitespace(String,String)
parent: com.microsoft.cognitiveservices.speech.util._contracts
href: com.microsoft.cognitiveservices.speech.util._contracts.yml
langs:
- java
name: throwIfNullOrWhitespace(String obj, String message)
nameWithType: Contracts.throwIfNullOrWhitespace(String obj, String message)
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfNullOrWhitespace(String obj, String message)
overload: com.microsoft.cognitiveservices.speech.util._contracts.throwIfNullOrWhitespace*
type: Method
source:
remote: *o0
path: source/bindings/java/com/microsoft/cognitiveservices/speech/util/Contracts.java
startLine: 28
package: com.microsoft.cognitiveservices.speech.util
summary: <p>Checks if the argument is null or whitespace, if yes, throws a IllegalArgumentException or NullPointerException. </p>
syntax:
content: public static void throwIfNullOrWhitespace(String obj, String message)
parameters:
- id: obj
type: "26831127"
description: <p>The object to test for null. </p>
- id: message
type: "26831127"
description: <p>The error message in case obj is null. </p>
references:
- uid: "79317049"
spec.java:
- name: Object
fullName: Object
- uid: "26831127"
spec.java:
- name: String
fullName: String
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfNull*
name: throwIfNull
nameWithType: Contracts.throwIfNull
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfNull
package: com.microsoft.cognitiveservices.speech.util
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfNullOrWhitespace*
name: throwIfNullOrWhitespace
nameWithType: Contracts.throwIfNullOrWhitespace
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfNullOrWhitespace
package: com.microsoft.cognitiveservices.speech.util
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalLanguage*
name: throwIfIllegalLanguage
nameWithType: Contracts.throwIfIllegalLanguage
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfIllegalLanguage
package: com.microsoft.cognitiveservices.speech.util
- uid: com.microsoft.cognitiveservices.speech.util._contracts.throwIfIllegalSubscriptionKey*
name: throwIfIllegalSubscriptionKey
nameWithType: Contracts.throwIfIllegalSubscriptionKey
fullName: com.microsoft.cognitiveservices.speech.util.Contracts.throwIfIllegalSubscriptionKey
package: com.microsoft.cognitiveservices.speech.util