📄 recipient.java
字号:
/*
* SSL-Explorer
*
* Copyright (C) 2003-2006 3SP LTD. All Rights Reserved
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package com.sslexplorer.notification;
public class Recipient implements Comparable {
public static final int EOF = 0;
public static final int ADMINS = 1;
public static final int USER = 2;
public static final int ROLE = 3;
public static final int POLICY = 4;
private int recipientType;
private String recipientAlias;
/**
* @param recipientType
* @param recipientAlias
*/
public Recipient(int recipientType, String recipientAlias) {
this.recipientType = recipientType;
this.recipientAlias = recipientAlias;
}
/**
* @return Returns the recipientAlias.
*/
public String getRecipientAlias() {
return recipientAlias;
}
/**
* @param recipientAlias The recipientAlias to set.
*/
public void setRecipientAlias(String recipientAlias) {
this.recipientAlias = recipientAlias;
}
/**
* @return Returns the recipientType.
*/
public int getRecipientType() {
return recipientType;
}
/**
* @param recipientType The recipientType to set.
*/
public void setRecipientType(int recipientType) {
this.recipientType = recipientType;
}
public int compareTo(Object arg0) {
Recipient r = (Recipient)arg0;
int c = new Integer(recipientType).compareTo(new Integer(r.getRecipientType()));
return c == 0 ? recipientAlias.compareTo(r.getRecipientAlias()) : c;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -