modificationitem.java
来自「gcc3.2.1源代码」· Java 代码 · 共 50 行
JAVA
50 行
/* Copyright (C) 2001 Free Software Foundation This file is part of libgcj.This software is copyrighted work licensed under the terms of theLibgcj License. Please consult the file "LIBGCJ_LICENSE" fordetails. */ package javax.naming.directory;import java.io.Serializable; /** * @author Warren Levy <warrenl@redhat.com> * @date June 13, 2001 */public class ModificationItem implements Serializable{ // Serialized fields. private int mod_op; private Attribute attr; public ModificationItem(int mod_op, Attribute attr) { if (attr == null) throw new IllegalArgumentException("attr is null"); if (mod_op != DirContext.ADD_ATTRIBUTE && mod_op != DirContext.REPLACE_ATTRIBUTE && mod_op != DirContext.REMOVE_ATTRIBUTE) throw new IllegalArgumentException("mod_op is invalid"); this.mod_op = mod_op; this.attr = attr; } public int getModificationOp() { return mod_op; } public Attribute getAttribute() { return attr; } public String toString() { return "mod_op=" + mod_op + ":" + "attr=" + attr.toString(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?