Static Methodscinfu.swiftsoup 2.8.7SwiftSoup
noNullElements(objects:msg:)
Validates that the array contains no null elements
static func noNullElements(objects: [AnyObject?], msg: String) throws
<param>
<param>
Validates that the array contains no null elements
static func noNullElements(objects: [AnyObject?], msg: String) throws
s9SwiftSoup8ValidateV14noNullElements7objects3msgySayyXlSgG_SStKFZ
What are these?5WDHY
<param>
<param>
import SwiftSoup
struct Validate
typealias AnyObject
The protocol to which all classes implicitly conform.
@frozen struct String
A Unicode string value that is a collection of characters.
static func exception(msg: String) throws
Helper
static func fail(msg: String) throws
Cause a failure.
static func isFalse(val: Bool) throws
Validates that the value is false
static func isFalse(val: Bool, msg: String) throws
Validates that the value is false
static func isTrue(val: Bool) throws
Validates that the value is true
static func isTrue(val: Bool, msg: String) throws
Validates that the value is true
static func noNullElements(objects: [AnyObject?]) throws
Validates that the array contains no null elements
static func notEmpty(string: String?) throws
static func notEmpty<T>(string: T?) throws where T : Collection, T.Element == UInt8
Validates that the string is not empty
static func notEmpty(string: String?, msg: String) throws
static func notEmpty(string: [UInt8]?, msg: String) throws
Validates that the string is not empty
static func notNull(obj: Any?) throws
Validates that the object is not null
static func notNull(obj: AnyObject?, msg: String) throws
Validates that the object is not null