|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
java.lang.Objectjavax.print.attribute.HashAttributeSet
public class HashAttributeSet
�� HashAttributeSet �ṩ���й�ϣӳ�������� AttributeSet
ʵ�֡�
���췽��ժҪ | |
---|---|
|
HashAttributeSet()
����һ���µġ������Լ��� |
|
HashAttributeSet(Attribute attribute)
����һ�����ʹ�ø����������������Լ��� |
|
HashAttributeSet(Attribute[] attributes)
����һ�����ʹ�ø��������е�ֵ���������Լ��� |
protected |
HashAttributeSet(Attribute[] attributes,
Class<?> interfaceName)
����һ���µ����Լ������и����Լ��ij�Ա���ڸ����Ľӿڡ� |
protected |
HashAttributeSet(Attribute attribute,
Class<?> interfaceName)
����һ�����ʹ�ø����������������Լ������и����Լ��ij�Ա���ڸ����Ľӿڡ� |
|
HashAttributeSet(AttributeSet attributes)
����һ�����ʹ�ø��������е�ֵ���������Լ��� |
protected |
HashAttributeSet(AttributeSet attributes,
Class<?> interfaceName)
����һ�����ʹ�ø��������е�ֵ���������Լ������и����Լ��ij�Ա���ڸ����Ľӿڡ� |
protected |
HashAttributeSet(Class<?> interfaceName)
����һ���µĿ����Լ������и����Լ��ij�Ա���ڸ����Ľӿڡ� |
����ժҪ | |
---|---|
boolean |
add(Attribute attribute)
���ָ�������Բ����ڣ��������ӵ������Լ��У������������Ƴ���ָ������ֵ��ͬ����������е��κ��������ԡ� |
boolean |
addAll(AttributeSet attributes)
��ָ�������е�����Ԫ�����ӵ��������С� |
void |
clear()
�Ӵ����Լ����Ƴ��������ԡ� |
boolean |
containsKey(Class<?> category)
��������Լ�����ָ���������ԣ��� true�� |
boolean |
containsValue(Attribute attribute)
��������Լ��������������ԣ��� true�� |
boolean |
equals(Object object)
�Ƚ�ָ���Ķ���������Լ�������ԡ� |
Attribute |
get(Class<?> category)
���ش����Լ��ڸ�������������а���������ֵ�� |
int |
hashCode()
���ش����Լ��Ĺ�ϣ��ֵ�� |
boolean |
isEmpty()
��������Լ��������κ����ԣ��� true�� |
boolean |
remove(Attribute attribute)
�Ӵ����Լ��Ƴ�ָ�������ԣ�������ڣ��� |
boolean |
remove(Class<?> category)
�Ӵ����Լ��Ƴ��������κ����ԣ�������ڣ��� |
int |
size()
���ش����Լ������Ե������� |
Attribute[] |
toArray()
���ش˼����а��������Ե����顣 |
���� java.lang.Object �̳еķ��� |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
���췽����ϸ��Ϣ |
---|
public HashAttributeSet()
public HashAttributeSet(Attribute attribute)
attribute
- Ҫ���ӵ��˼��ϵ�����ֵ��
NullPointerException
- ��δ�������쳣����� attribute
Ϊ null�����׳����쳣��public HashAttributeSet(Attribute[] attributes)
attributes
�����е�Ԫ�ش����� 0 ��ʼ��˳�����ӵ��ü���������µ����Լ�����ˣ��������������ظ�������ֵ�������������������Ԫ�ؿ����滻ǰ�������Ԫ�ء�
attributes
- Ҫ���ӵ��ü��ϵ�����ֵ�����顣���Ϊ null������һ�������Լ���
NullPointerException
- ��δ�������쳣����� attributes
���κ�Ԫ��Ϊ null�����׳����쳣��public HashAttributeSet(AttributeSet attributes)
attributes
- ���г�ʼ���˼��ϵ����Լ������Ϊ null������һ�������Լ���protected HashAttributeSet(Class<?> interfaceName)
interfaceName
- �����Լ������г�Ա��������ʵ���Ľӿڡ������ǽӿ� Attribute
�����ӽӿڡ�
NullPointerException
- ��� interfaceName Ϊ null��protected HashAttributeSet(Attribute attribute, Class<?> interfaceName)
attribute
- Ҫ���ӵ��˼��ϵ�����ֵ��interfaceName
- �����Լ������г�Ա��������ʵ���Ľӿڡ������ǽӿ� Attribute
�����ӽӿڡ�
NullPointerException
- ��δ�������쳣����� attribute
Ϊ null�����׳����쳣��
NullPointerException
- ��� interfaceName Ϊ null��
ClassCastException
- ��δ�������쳣����� attribute
���� interfaceName
��һ��ʵ�������׳����쳣��protected HashAttributeSet(Attribute[] attributes, Class<?> interfaceName)
attributes
�����е�Ԫ�ش����� 0 ��ʼ��˳�����ӵ��ü���������µ����Լ�����ˣ��������������ظ�������ֵ�������������������Ԫ�ؿ����滻ǰ�������Ԫ�ء�
attributes
- Ҫ���ӵ��ü��ϵ�����ֵ�����顣���Ϊ null������һ�������Լ���interfaceName
- �����Լ������г�Ա��������ʵ���Ľӿڡ������ǽӿ� Attribute
�����ӽӿڡ�
NullPointerException
- ��δ�������쳣����� attributes
���κ�Ԫ��Ϊ null�����׳����쳣��
NullPointerException
- ��� interfaceName Ϊ null��
ClassCastException
- ��δ�������쳣����� attributes
��Ԫ�ز��� interfaceName
��һ��ʵ�������׳����쳣��protected HashAttributeSet(AttributeSet attributes, Class<?> interfaceName)
attributes
- Ҫ��ʼ���ü��ϵ�����ֵ�ļ��ϡ����Ϊ null������һ�������Լ���interfaceName
- �����Լ������г�Ա��������ʵ���Ľӿڡ������ǽӿ� Attribute
�����ӽӿڡ�
ClassCastException
- ��δ�������쳣����� attributes
��Ԫ�ز��� interfaceName
��һ��ʵ�������׳����쳣��������ϸ��Ϣ |
---|
public Attribute get(Class<?> category)
AttributeSet
�е� get
category
- �����������������ֵ�����������������ʵ�ֽӿ� Attribute
�� Class
��
NullPointerException
- ��δ�������쳣����� category
Ϊ null�����׳����쳣��
ClassCastException
- ��δ�������쳣����� category
����ʵ�ֽӿ� Attribute
�� Class
�����׳����쳣��public boolean add(Attribute attribute)
AttributeSet
�е� add
attribute
- Ҫ���ӵ������Լ�������ֵ��
NullPointerException
- ��δ�������쳣����� attribute
Ϊ null�����׳����쳣��
UnmodifiableSetException
- ��δ�������쳣����������Լ���֧�� add()
���������׳����쳣��public boolean remove(Class<?> category)
category
Ϊ null���� remove()
��ִ���κβ����������� false��
AttributeSet
�е� remove
category
- Ҫ�Ӵ����Լ��Ƴ����������
UnmodifiableSetException
- ��δ�������쳣����������Լ���֧�� remove()
���������׳����쳣��public boolean remove(Attribute attribute)
attribute
Ϊ null���� remove()
��ִ���κβ����������� false��
AttributeSet
�е� remove
attribute
- �Ӵ����Լ��Ƴ�������ֵ��
UnmodifiableSetException
- ��δ�������쳣����������Լ���֧�� remove()
���������׳����쳣��public boolean containsKey(Class<?> category)
AttributeSet
�е� containsKey
category
- ���������Ƿ�����ڴ����Լ��е����
public boolean containsValue(Attribute attribute)
AttributeSet
�е� containsValue
attribute
- ���������Ƿ�����ڴ����Լ��е�ֵ��
public boolean addAll(AttributeSet attributes)
add(Attribute)
�����ɹ���Ӧ�õ������Լ�����ͬ��������ڽ��д˲�����ͬʱ����ָ���ļ��ϣ��� addAll(AttributeSet)
��������Ϊ�Dz�ȷ���ġ�
��� addAll(AttributeSet)
�����׳�һ���쳣����Դ����Լ�״̬��Ӱ��ȡ����ʵ�ַ��������쳣��֮ǰ����һ����ָ�������е�Ԫ�����ӵ��˴����Լ���
AttributeSet
�е� addAll
attributes
- Ҫ����Ԫ�����ӵ������Լ��е����ԡ�
UnmodifiableSetException
- ��δ�������쳣����������Լ���֧�� addAll(AttributeSet) ���������׳����쳣��
NullPointerException
- ��δ�������쳣�����ָ�������е�ijһԪ��Ϊ null����ü���Ϊ null�����׳����쳣��add(Attribute)
public int size()
AttributeSet
�е� size
public Attribute[] toArray()
AttributeSet
���Ƶ�����
AttributeSet
�е� toArray
public void clear()
AttributeSet
�е� clear
UnmodifiableSetException
- ��δ�������쳣����������Լ���֧�� clear()
���������׳����쳣��public boolean isEmpty()
AttributeSet
�е� isEmpty
public boolean equals(Object object)
AttributeSet
�е� equals
Object
�е� equals
object
- Ҫ������Լ���������ԱȽϵĶ���
Object.hashCode()
,
Hashtable
public int hashCode()
Object.hashCode()
��ͨ��Э����Ҫ��ġ�
AttributeSet
�е� hashCode
Object
�е� hashCode
Object.equals(java.lang.Object)
,
Hashtable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
��һ���� ��һ���� | ��� ��� ������ | |||||||||
ժҪ�� Ƕ�� | �ֶ� | ���췽�� | ���� | ��ϸ��Ϣ�� �ֶ� | ���췽�� | ���� |
��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������