⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vboolean.java

📁 一个简单的visio程序。
💻 JAVA
字号:
package HECore.stddata;
import java.util.*;
import java.lang.*;
import HPCore.Exception.*;

public class VBoolean extends VNumber{
     private boolean bool;
  
   /**
     * Constructs a VBoolean object representing a boolean in VB
    */

 public VBoolean(boolean b)
    {  
      super(b); 
      bool=b;
     }
  
   /**
     * Constructs a VBoolean object representing any number type(for examples: int long ...) in VB
    */

  public VBoolean(double db)
    {  
       super(db);
       if((int)db!=0)
           bool=true;
        else
           bool=false;
      
     }
   
   /**
     * Returns a boolean represention of the VBoolean object
     */

  public boolean boolValue()
    {
       return bool;

    }

   /**
     * Returns this object type  
     */
 
    public short getType()
   {

     return V_BOL;
   }

   /**
     * Returns the string representaion of the VBoolean object .
    */
 
   public String toString()
    {
     return (bool == true)? "True":"False"; 
    }

   /**
     * Returns the string representaion of the VBoolean object .
    */
 
   public String strValue(){
     return toString();
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -