attribute.java

来自「用于串口通讯测试的工具软件。完全使用java语言编写。」· Java 代码 · 共 53 行

JAVA
53
字号
package com.zcsoft.xml;import java.util.*;public class Attribute implements java.io.Serializable{	private String name;	private String value;	public Attribute(){}	public Attribute(String name, String value)	{		this.name = name;		this.value = value;	}	public boolean equals(Object you)	{		return you instanceof Attribute				&& this.name != null				&& this.name.equals(((Attribute)you).name);	}	public int hashCode()	{		return name != null?name.hashCode():0;	}	public String toString()	{		return name + '=' + value;	}	public void setName(String name)	{		this.name = name;	}	public String getName()	{		return name;	}	public void setValue(String value)	{		this.value = value;	}	public String getValue()	{		return value;	}}

⌨️ 快捷键说明

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