Recorder.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.observer;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class Recorder {
- //域名
- private String domain;
- //IP地址
- private String ip;
- //属主
- private String owner;
-
- public String getDomain() {
- return domain;
- }
- public void setDomain(String domain) {
- this.domain = domain;
- }
- public String getIp() {
- return ip;
- }
- public void setIp(String ip) {
- this.ip = ip;
- }
- public String getOwner() {
- return owner;
- }
- public void setOwner(String owner) {
- this.owner = owner;
- }
-
- //输出记录信息
- @Override
- public String toString(){
- String str= "域名:" + this.domain;
- str = str + "nIP地址:" + this.ip;
- str = str + "n解析者:" + this.owner;
-
- return str;
- }
- }