
wee0.lang.IBytes Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) 2016-2022, wee0.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
package wee0.lang;
/**
* 二进制类型对象
* @author baihw
* @date 2017年11月5日
**/
/**
* * examples:
*
**/
public interface IBytes extends IObject{
/**
* 当前对象数据类型
*/
String TYPE = "wee0.lang.bytes";
/**
* 获取当前对象数据类型
*
* @return 当前对象数据类型
*/
default String getType(){
return TYPE;
}
/**
* 判断是否为空数据。
*
* @return 是否为空数据
*/
boolean isEmpty();
/**
* 获取原始二进制数据
*
* @return 原始二进制数据
*/
byte[] nativeValue();
} // end class