📄 user.java.txt
字号:
/*
* Copyright 2002-2005 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.swato.json_rpc.demo;
/**
* @author Zhijie Chen (zigzag.chen@gmail.com)
*/
public class User implements Comparable {
/**
* @return Returns the age.
*/
public final int getAge() {
return m_age;
}
/**
* @param age
* The age to set.
*/
public final void setAge(int age) {
m_age = age;
}
/**
* @return Returns the country.
*/
public final String getCountry() {
return m_country;
}
/**
* @param country
* The country to set.
*/
public final void setCountry(String country) {
m_country = country;
}
/**
* @return Returns the email.
*/
public final String getEmail() {
return m_email;
}
/**
* @param email
* The email to set.
*/
public final void setEmail(String email) {
m_email = email;
}
/**
* @return Returns the userName.
*/
public final String getUserName() {
return m_userName;
}
/**
* @param userName
* The userName to set.
*/
public final void setUserName(String userName) {
m_userName = userName;
}
private String m_userName="";
private String m_email="";
private int m_age = 25;
private String m_country="";
private int id=0;
/**
* @return Returns the id.
*/
public final int getId() {
return id;
}
/**
* @param id
* The id to set.
*/
public final void setId(int id) {
this.id = id;
}
/*
* (non-Javadoc)
*
* @see java.lang.Comparable#compareTo(java.lang.Object)
*/
public int compareTo(Object o) {
return this.id - ((User) o).id;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -