constructorargumentvalue.java.svn-base

来自「EasyJWeb是基于java技术」· SVN-BASE 代码 · 共 52 行

SVN-BASE
52
字号
package com.easyjf.container;

public class ConstructorArgumentValue implements java.lang.Comparable<ConstructorArgumentValue> {
	private Integer index;

	private Class type;

	private Object value;

	public ConstructorArgumentValue() {

	}

	public ConstructorArgumentValue(Integer index, Class type, Object value) {
		this.index = index;
		this.type = type;
		this.value = value;
	}
	
	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public Class getType() {
		return type;
	}

	public void setType(Class type) {
		this.type = type;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public int hashCode() {	
		return index!=null?index.hashCode():value.hashCode();
	}

	public int compareTo(ConstructorArgumentValue o) {	
		return this.index-o.index;
	}
	
}

⌨️ 快捷键说明

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