Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Resolution: Hashable {
- var horizontal: Int
- var vertical: Int
- var hashValue: Int {
- return horizontal.hashValue ^ vertical.hashValue &* 16777619
- }
- init(horizontal: Int, vertical: Int) {
- self.horizontal = horizontal
- self.vertical = vertical
- }
- static func == (lhs: Resolution, rhs: Resolution) -> Bool {
- return lhs.vertical == rhs.vertical && lhs.horizontal == rhs.vertical
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement