You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
400 B
21 lines
400 B
1 year ago
|
/**
|
||
|
* File: Pair.swift
|
||
|
* Created Time: 2023-06-28
|
||
|
* Author: nuomi1 (nuomi1@qq.com)
|
||
|
*/
|
||
|
|
||
|
/* 键值对 */
|
||
|
public class Pair: Equatable {
|
||
|
public var key: Int
|
||
|
public var val: String
|
||
|
|
||
|
public init(key: Int, val: String) {
|
||
|
self.key = key
|
||
|
self.val = val
|
||
|
}
|
||
|
|
||
|
public static func == (lhs: Pair, rhs: Pair) -> Bool {
|
||
|
lhs.key == rhs.key && lhs.val == rhs.val
|
||
|
}
|
||
|
}
|