📄 dxlong.java
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-2000 by SMB GmbH. All rights reserved.//// $Id: DxLong.java,v 1.5 2000/10/28 16:55:14 daniela Exp $package org.ozoneDB.DxLib;import java.io.*;public class DxLong extends DxObject implements Externalizable { final static long serialVersionUID = 1L; long value = 0; public DxLong() { } public DxLong( long v ) { value = v; } public DxLong( DxLong v ) { super(); value = v.value; } public Object clone() { return new DxLong( value ); } public boolean equals( Object obj ) { return value == ((DxLong)obj).value; } public boolean isLess( DxCompatible obj ) { return value < ((DxLong)obj).value; } public String toString() { return Long.toString( value ); } public long toLong() { return value; } public int hashCode() { //die fehlenden bits dann mit equals() return (int)value; } public void writeExternal( ObjectOutput out ) throws IOException { out.writeLong( value ); } public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { value = in.readLong(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -