亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? rights.java

?? java Email you can use it to send email to others
?? JAVA
字號(hào):
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License").  You * may not use this file except in compliance with the License. You can obtain * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html * or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. * Sun designates this particular file as subject to the "Classpath" exception * as provided by Sun in the GPL Version 2 section of the License file that * accompanied this code.  If applicable, add the following below the License * Header, with the fields enclosed by brackets [] replaced by your own * identifying information: "Portions Copyrighted [year] * [name of copyright owner]" * * Contributor(s): * * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license."  If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above.  However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. *//* * @(#)Rights.java	1.8 07/05/15 */package com.sun.mail.imap;import java.util.*;/** * The Rights class represents the set of rights for an authentication * identifier (for instance, a user or a group). <p> * * A right is represented by the <code>Rights.Right</code>  * inner class. <p> * * A set of standard rights are predefined (see RFC 2086).  Most folder * implementations are expected to support these rights.  Some * implementations may also support site-defined rights. <p> * * The following code sample illustrates how to examine your * rights for a folder. <p> * <pre> * * Rights rights = folder.myRights(); * * // Check if I can write this folder * if (rights.contains(Rights.Right.WRITE)) *	System.out.println("Can write folder"); * * // Now give Joe all my rights, except the ability to write the folder * rights.remove(Rights.Right.WRITE); * ACL acl = new ACL("joe", rights); * folder.setACL(acl); * </pre> * <p> * * @author Bill Shannon */public class Rights implements Cloneable {    private boolean[] rights = new boolean[128];	// XXX    /**     * This inner class represents an individual right. A set     * of standard rights objects are predefined here.     */    public static final class Right {	private static Right[] cache = new Right[128];	// XXX - initialization order?	/**	 * Lookup - mailbox is visible to LIST/LSUB commands.	 */	public static final Right LOOKUP = getInstance('l');	/**	 * Read - SELECT the mailbox, perform CHECK, FETCH, PARTIAL,	 * SEARCH, COPY from mailbox	 */	public static final Right READ = getInstance('r');	/**	 * Keep seen/unseen information across sessions - STORE \SEEN flag.	 */	public static final Right KEEP_SEEN = getInstance('s');	/**	 * Write - STORE flags other than \SEEN and \DELETED.	 */	public static final Right WRITE = getInstance('w');	/**	 * Insert - perform APPEND, COPY into mailbox.	 */	public static final Right INSERT = getInstance('i');	/**	 * Post - send mail to submission address for mailbox,	 * not enforced by IMAP4 itself.	 */	public static final Right POST = getInstance('p');	/**	 * Create - CREATE new sub-mailboxes in any implementation-defined	 * hierarchy, RENAME or DELETE mailbox.	 */	public static final Right CREATE = getInstance('c');	/**	 * Delete - STORE \DELETED flag, perform EXPUNGE.	 */	public static final Right DELETE = getInstance('d');	/**	 * Administer - perform SETACL.	 */	public static final Right ADMINISTER = getInstance('a');	char right;	// the right represented by this Right object	/**	 * Private constructor used only by getInstance.	 */	private Right(char right) {	    if ((int)right >= 128)		throw new IllegalArgumentException("Right must be ASCII");	    this.right = right;	}	/**	 * Get a Right object representing the specified character.	 * Characters are assigned per RFC 2086.	 */	public static synchronized Right getInstance(char right) {	    if ((int)right >= 128)		throw new IllegalArgumentException("Right must be ASCII");	    if (cache[(int)right] == null)		cache[(int)right] = new Right(right);	    return cache[(int)right];	}	public String toString() {	    return String.valueOf(right);	}    }    /**     * Construct an empty Rights object.     */    public Rights() { }    /**     * Construct a Rights object initialized with the given rights.     *     * @param rights	the rights for initialization     */    public Rights(Rights rights) {	System.arraycopy(rights.rights, 0, this.rights, 0, this.rights.length);    }    /**     * Construct a Rights object initialized with the given rights.     *     * @param rights	the rights for initialization     */    public Rights(String rights) {	for (int i = 0; i < rights.length(); i++)	    add(Right.getInstance(rights.charAt(i)));    }    /**     * Construct a Rights object initialized with the given right.     *     * @param right	the right for initialization     */    public Rights(Right right) {	this.rights[(int)right.right] = true;    }    /**     * Add the specified right to this Rights object.     *     * @param right	the right to add     */    public void add(Right right) {	this.rights[(int)right.right] = true;    }    /**     * Add all the rights in the given Rights object to this     * Rights object.     *     * @param rights	Rights object     */    public void add(Rights rights) {	for (int i = 0; i < rights.rights.length; i++)	    if (rights.rights[i])		this.rights[i] = true;    }    /**     * Remove the specified right from this Rights object.     *     * @param	right 	the right to be removed     */    public void remove(Right right) {	this.rights[(int)right.right] = false;    }    /**     * Remove all rights in the given Rights object from this      * Rights object.     *     * @param	rights 	the rights to be removed     */    public void remove(Rights rights) {	for (int i = 0; i < rights.rights.length; i++)	    if (rights.rights[i])		this.rights[i] = false;    }    /**     * Check whether the specified right is present in this Rights object.     *     * @return 		true of the given right is present, otherwise false.     */    public boolean contains(Right right) {	return this.rights[(int)right.right];    }    /**     * Check whether all the rights in the specified Rights object are     * present in this Rights object.     *     * @return	true if all rights in the given Rights object are present,      *		otherwise false.     */    public boolean contains(Rights rights) {	for (int i = 0; i < rights.rights.length; i++)	    if (rights.rights[i] && !this.rights[i])		return false;	// If we've made it till here, return true	return true;    }    /**     * Check whether the two Rights objects are equal.     *     * @return	true if they're equal     */    public boolean equals(Object obj) {	if (!(obj instanceof Rights))	    return false;	Rights rights = (Rights)obj;	for (int i = 0; i < rights.rights.length; i++)	    if (rights.rights[i] != this.rights[i])		return false;	return true;    }    /**     * Compute a hash code for this Rights object.     *     * @return	the hash code     */    public int hashCode() {	int hash = 0;	for (int i = 0; i < this.rights.length; i++)	    if (this.rights[i])		hash++;	return hash;    }    /**     * Return all the rights in this Rights object.  Returns     * an array of size zero if no rights are set.     *     * @return	array of Rights.Right objects representing rights     */    public Right[] getRights() {	Vector v = new Vector();	for (int i = 0; i < this.rights.length; i++)	    if (this.rights[i])		v.addElement(Right.getInstance((char)i));	Right[] rights = new Right[v.size()];	v.copyInto(rights);	return rights;    }    /**     * Returns a clone of this Rights object.     */    public Object clone() {	Rights r = null;	try {	    r = (Rights)super.clone();	    r.rights = new boolean[128];	    System.arraycopy(this.rights, 0, r.rights, 0, this.rights.length);	} catch (CloneNotSupportedException cex) {	    // ignore, can't happen	}	return r;    }    public String toString() {	StringBuffer sb = new StringBuffer();	for (int i = 0; i < this.rights.length; i++)	    if (this.rights[i])		sb.append((char)i);	return sb.toString();    }    /*****    public static void main(String argv[]) throws Exception {	// a new rights object	Rights f1 = new Rights();	f1.add(Rights.Right.READ);	f1.add(Rights.Right.WRITE);	f1.add(Rights.Right.CREATE);	f1.add(Rights.Right.DELETE);	// check copy constructor	Rights fc = new Rights(f1);	if (f1.equals(fc) && fc.equals(f1))	    System.out.println("success");	else	    System.out.println("fail");	// check clone	fc = (Rights)f1.clone();	if (f1.equals(fc) && fc.equals(f1))	    System.out.println("success");	else	    System.out.println("fail");	// add a right and make sure it still works right	f1.add(Rights.Right.ADMINISTER);	// shouldn't be equal here	if (!f1.equals(fc) && !fc.equals(f1))	    System.out.println("success");	else	    System.out.println("fail");	// check clone	fc = (Rights)f1.clone();	if (f1.equals(fc) && fc.equals(f1))	    System.out.println("success");	else	    System.out.println("fail");	fc.add(Rights.Right.INSERT);	if (!f1.equals(fc) && !fc.equals(f1))	    System.out.println("success");	else	    System.out.println("fail");	// check copy constructor	fc = new Rights(f1);	if (f1.equals(fc) && fc.equals(f1))	    System.out.println("success");	else	    System.out.println("fail");	// another new rights object	Rights f2 = new Rights(Rights.Right.READ);	f2.add(Rights.Right.WRITE);	if (f1.contains(Rights.Right.READ))	    System.out.println("success");	else	    System.out.println("fail");			if (f1.contains(Rights.Right.WRITE))	    System.out.println("success");	else	    System.out.println("fail");	if (f1.contains(Rights.Right.CREATE))	    System.out.println("success");	else	    System.out.println("fail");	if (f1.contains(Rights.Right.DELETE))	    System.out.println("success");	else	    System.out.println("fail");	if (f2.contains(Rights.Right.WRITE))	    System.out.println("success");	else	    System.out.println("fail");	System.out.println("----------------");	Right[] r = f1.getRights();	for (int i = 0; i < r.length; i++)	    System.out.println(r[i]);	System.out.println("----------------");	if (f1.contains(f2)) // this should be true	    System.out.println("success");	else	    System.out.println("fail");	if (!f2.contains(f1)) // this should be false	    System.out.println("success");	else	    System.out.println("fail");	Rights f3 = new Rights();	f3.add(Rights.Right.READ);	f3.add(Rights.Right.WRITE);	f3.add(Rights.Right.CREATE);	f3.add(Rights.Right.DELETE);	f3.add(Rights.Right.ADMINISTER);	f3.add(Rights.Right.LOOKUP);	f1.add(Rights.Right.LOOKUP);	if (f1.equals(f3))	    System.out.println("equals success");	else	    System.out.println("fail");	if (f3.equals(f1))	    System.out.println("equals success");	else	    System.out.println("fail");	System.out.println("f1 hash code " + f1.hashCode());	System.out.println("f3 hash code " + f3.hashCode());	if (f1.hashCode() == f3.hashCode())	    System.out.println("success");	else	    System.out.println("fail");    }    ****/}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品欧美黑人一区二区三区| 欧美日韩国产精品自在自线| 亚洲午夜一区二区三区| 日韩午夜中文字幕| 色欧美乱欧美15图片| 精久久久久久久久久久| 亚洲国产中文字幕在线视频综合| 亚洲精品在线三区| 欧美高清dvd| 91视频www| 国产不卡在线视频| 男女视频一区二区| 亚洲欧美成aⅴ人在线观看| 日韩免费电影网站| 欧美日韩亚洲不卡| 99精品视频在线播放观看| 国产一区二区三区在线观看免费视频 | 亚洲韩国一区二区三区| 日本一区二区免费在线观看视频 | 91黄视频在线| 丰满亚洲少妇av| 国产毛片精品视频| 喷白浆一区二区| 日韩中文字幕麻豆| 亚洲自拍欧美精品| 一区二区视频在线| 国产精品久久久久久久久快鸭 | 91丨九色丨黑人外教| 懂色av一区二区三区免费看| 激情文学综合丁香| 老司机精品视频导航| 三级不卡在线观看| 亚洲成人综合网站| 亚洲国产精品精华液网站| 一区二区三区免费网站| 日韩一区在线看| 国产精品传媒视频| 亚洲天堂成人在线观看| 中文字幕一区二区日韩精品绯色| 久久久噜噜噜久噜久久综合| 精品国产一二三| 精品国产青草久久久久福利| 欧美成人精品福利| www激情久久| 国产午夜亚洲精品不卡| 久久久www成人免费无遮挡大片| 亚洲精品一区二区在线观看| 精品日本一线二线三线不卡| 天堂一区二区在线| 日韩av成人高清| 欧美96一区二区免费视频| 美国欧美日韩国产在线播放| 免费在线观看一区二区三区| 九色综合狠狠综合久久| 国产一区二区福利| 99热精品一区二区| 欧美亚洲禁片免费| 欧美一区二区精品| 久久久综合激的五月天| 亚洲国产高清aⅴ视频| 国产精品传媒入口麻豆| 一区二区三区精品视频| 亚洲电影一级黄| 久久99精品国产| 成人影视亚洲图片在线| 92精品国产成人观看免费| 欧美色网一区二区| 91精品免费在线观看| 久久嫩草精品久久久精品| 国产精品情趣视频| 亚洲一区二区精品3399| 久久成人精品无人区| 成人激情开心网| 欧美日韩一级视频| 久久嫩草精品久久久精品| 中文字幕在线不卡| 日韩电影在线看| 国产精品性做久久久久久| 一本大道综合伊人精品热热| 欧美日韩高清一区二区| 国产视频一区二区在线| 亚洲欧美日韩国产中文在线| 日本在线不卡一区| 国产午夜精品久久久久久免费视| 国产精品盗摄一区二区三区| 日韩在线一区二区| 成人永久aaa| 91精品国产福利在线观看| 中文幕一区二区三区久久蜜桃| 一个色在线综合| 国产精品一卡二卡| 精品视频1区2区3区| 欧美韩国一区二区| 天天免费综合色| 成人av电影免费观看| 日韩欧美一区电影| 夜夜爽夜夜爽精品视频| 国产在线精品一区二区不卡了| 在线亚洲一区二区| 国产日产精品一区| 男女视频一区二区| 在线精品国精品国产尤物884a| 久久只精品国产| 五月婷婷久久丁香| 93久久精品日日躁夜夜躁欧美| 精品乱人伦小说| 亚洲高清不卡在线观看| 岛国av在线一区| 日韩精品一区二区三区在线 | 99国产一区二区三精品乱码| 欧美大片在线观看| 午夜久久久久久久久久一区二区| 久久一区二区三区四区| 日韩高清一级片| 一本大道综合伊人精品热热| 中文字幕精品一区二区精品绿巨人 | 欧美成人性战久久| 亚洲第一精品在线| 不卡电影一区二区三区| 久久久久久亚洲综合影院红桃| 午夜精品久久久久久久久久| 一本久久a久久精品亚洲| 国产精品少妇自拍| 国产成人午夜视频| 久久伊99综合婷婷久久伊| 日韩国产欧美视频| 欧美精品乱码久久久久久| 亚洲一区二区综合| 在线视频一区二区免费| 亚洲精品美腿丝袜| 一本大道av一区二区在线播放| 国产欧美精品在线观看| 国产成人在线视频播放| 久久精品日产第一区二区三区高清版 | 中文字幕一区不卡| 不卡一二三区首页| 国产精品护士白丝一区av| 成人性色生活片| 中国av一区二区三区| 成人激情免费电影网址| 中文字幕二三区不卡| 成人动漫av在线| 国产精品理伦片| 91亚洲国产成人精品一区二三| 最新国产成人在线观看| 91免费观看在线| 亚洲小说春色综合另类电影| 欧美日韩精品一区二区三区蜜桃| 亚洲va韩国va欧美va精品| 欧美三级日韩在线| 日本午夜精品视频在线观看| 日韩一区二区影院| 国产自产视频一区二区三区| 国产日韩精品视频一区| 99这里只有久久精品视频| 亚洲激情综合网| 欧美精品aⅴ在线视频| 青青草97国产精品免费观看无弹窗版| 日韩三级视频在线观看| 国产精品自拍在线| 亚洲人成在线播放网站岛国| 欧美日韩精品三区| 捆绑调教一区二区三区| 国产三区在线成人av| 91女神在线视频| 午夜精品国产更新| 久久色视频免费观看| 91麻豆免费视频| 日日夜夜一区二区| 亚洲精品一区二区三区蜜桃下载 | 裸体健美xxxx欧美裸体表演| 2024国产精品视频| 99久久综合狠狠综合久久| 亚洲成人在线观看视频| 精品国产凹凸成av人导航| 99综合电影在线视频| 在线免费观看日本一区| 婷婷久久综合九色综合伊人色| 久久精品亚洲麻豆av一区二区| av成人老司机| 美女网站色91| 亚洲人成网站在线| 精品国产不卡一区二区三区| 色婷婷综合久久久中文字幕| 蜜桃精品视频在线| 中文字幕一区二区三区在线观看| 欧美老人xxxx18| 不卡大黄网站免费看| 蜜臀av一区二区在线观看| 亚洲欧洲日产国产综合网| 日韩视频一区二区三区在线播放| av亚洲精华国产精华精华| 蜜桃av一区二区三区| 亚洲欧美日本韩国| 久久影院午夜论| 欧美狂野另类xxxxoooo| 99久久综合国产精品| 激情欧美一区二区三区在线观看| 一二三区精品福利视频| 国产精品三级av|