Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
Code Block | ||
---|---|---|
| ||
File: MyBinary.java package org.onosproject.yang.gen.v1.http.huawei.com.rev20160718.test; import java.util.Objects; import com.google.common.base.MoreObjects; import java.util.Base64; /** * Represents the implementation of myBinary. */ public final class MyBinary { private byte[] binary; /** * Creates an instance of myBinary. */ private MyBinary() { } /** * Creates an instance of myBinaryForTypeBinary. * * @param value value of myBinaryForTypeBinary */ public MyBinary(byte[] value) { this.binary = value; } /** * Returns the object of myBinaryForTypeBinary. * * @param value value of myBinaryForTypeBinary * @return Object of myBinaryForTypeBinary */ public static MyBinary of(byte[] value) { return new MyBinary(value); } /** * Returns the attribute binary. * * @return value of binary */ public byte[] binary() { return binary; } @Override public int hashCode() { return Objects.hash(binary); } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof MyBinary) { MyBinary other = (MyBinary) obj; return Objects.equals(binary, other.binary); } return false; } @Override public String toString() { return Base64.getEncoder().encodeToString(binary); } /** * Returns the object of myBinary fromString input String. * * @param valInString input String * @return Object of myBinary */ public static MyBinary fromString(String valInString) { try { byte[] tmpVal = Base64.getDecoder().decode(valInString); return of(tmpVal); } catch (Exception e) { } return null; } } |
decimal64
Overview
The decimal64 type represents a subset of the real numbers, which can be represented by decimal numerals.
A decimal64 type can be restricted with the "range" statement.
The "fraction-digits" statement, which is a substatement to the "type" statement, MUST be present if the type is "decimal64". It takes as an argument an integer between 1 and 18, inclusively. It controls the size of the minimum difference between values of a decimal64 type.
Golden Eye Demo
Link: https://www.youtube.com/watch?v=ipbu0x0LcDk
...