📄 dxdouble.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: DxDouble.java,v 1.5 2000/10/28 16:55:14 daniela Exp $package org.ozoneDB.DxLib;import java.io.*;public class DxDouble extends DxObject implements Externalizable { final static long serialVersionUID = 1L; double value = 0; public DxDouble() { } public DxDouble( double v ) { value = v; } public DxDouble( DxDouble v ) { super(); value = v.value; } public Object clone() { return new DxDouble( value ); } public boolean equals( Object obj ) { return value == ((DxDouble)obj).value; } public boolean isLess( DxCompatible obj ) { return value < ((DxDouble)obj).value; } public String toString() { return Double.toString( value ); } public double toDouble() { return value; } public int hashCode() { //die fehlenden bits dann mit equals() return (int)value; } public void writeExternal( ObjectOutput out ) throws IOException { out.writeDouble( value ); } public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { value = in.readDouble(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -