Searched refs:key (Results 201 - 225 of 1411) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/classes/java/util/
H A DListResourceBundle.java54 * The first element of each pair is the key, which must be a
56 * that key.
121 public final Object handleGetObject(String key) { argument
126 if (key == null) {
129 return lookup.get(key); // this class ignores locales
170 * the key, which must be a <code>String</code>, and the second
171 * element is the value associated with that key. See the class
175 * key-value pair.
192 // key must be non-null String, value must be non-null
193 String key
[all...]
/openjdk7/jdk/src/share/classes/javax/accessibility/
H A DAccessibleBundle.java39 * for a locale independent key from a predefined ResourceBundle for the
64 protected String key = null; field in class:AccessibleBundle
67 * Obtains the key as a localized string.
68 * If a localized string cannot be found for the key, the
69 * locale independent key stored in the role will be returned.
76 * @return a localized String for the key.
88 o = resourceTable.get(key);
94 return key;
98 * Obtains the key as a localized string.
99 * If a localized string cannot be found for the key, th
[all...]
/openjdk7/jdk/src/share/classes/javax/management/openmbean/
H A DTabularDataSupport.java214 * (ie a row) whose index is the specified <var>key</var>. If <var>key</var> cannot be cast to a one dimension array
216 * <tt>this.containsKey((Object[]) key)</tt>.
218 * @param key the index value whose presence in this <tt>TabularData</tt> instance is to be tested.
220 * @return <tt>true</tt> if this <tt>TabularData</tt> indexes a row value with the specified key.
222 public boolean containsKey(Object key) { argument
224 // if key is not an array of Object instances, return false
228 k = (Object[]) key;
238 * (ie a row) whose index is the specified <var>key</var>. If <var>key</va
245 containsKey(Object[] key) argument
285 get(Object key) argument
306 get(Object[] key) argument
344 put(Object key, Object value) argument
378 remove(Object key) argument
398 remove(Object[] key) argument
819 checkKeyType(Object[] key) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/script/util/
H A DBindingsEntrySet.java54 private String key; field in class:BindingsEntrySet.BindingsEntry
55 public BindingsEntry(String key) { argument
56 this.key = key;
64 return key;
68 return base.get(key);
/openjdk7/jdk/src/windows/native/sun/windows/
H A DHashtable.cpp74 BOOL Hashtable::containsKey(void* key) { argument
76 int index = static_cast<int>(((reinterpret_cast<INT_PTR>(key) << 1) >> 1)
79 if (e->hash == (INT_PTR)key && e->key == key) {
86 void* Hashtable::get(void* key) { argument
88 int index = static_cast<int>(((reinterpret_cast<INT_PTR>(key) << 1) >> 1)
91 if (e->hash == (INT_PTR)key && e->key == key) {
123 put(void* key, void* value) argument
163 remove(void* key) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DKeyCache.java79 synchronized P11Key get(Key key) { argument
80 P11Key p11Key = (P11Key)strongCache.get(new IdentityWrapper(key));
89 return map.get(key);
92 synchronized void put(Key key, P11Key p11Key) { argument
93 strongCache.put(new IdentityWrapper(key), p11Key);
100 map.put(key, p11Key);
H A DP11SecretKeyFactory.java106 * Convert an arbitrary key of algorithm into a P11Key of provider.
109 static P11Key convertKey(Token token, Key key, String algo) argument
111 return convertKey(token, key, algo, null);
115 * Convert an arbitrary key of algorithm w/ custom attributes into a
119 static P11Key convertKey(Token token, Key key, String algo, argument
123 if (key == null) {
126 if (key instanceof SecretKey == false) {
131 algo = key.getAlgorithm();
135 long keyAlgorithmType = getKeyType(key.getAlgorithm());
138 // ignore key algorith
180 fixDESParity(byte[] key, int offset) argument
307 getKeyBytes(SecretKey key) argument
322 engineGetKeySpec(SecretKey key, Class keySpec) argument
353 engineTranslateKey(SecretKey key) argument
[all...]
H A DP11DHKeyFactory.java52 PublicKey implTranslatePublicKey(PublicKey key) throws InvalidKeyException { argument
54 if (key instanceof DHPublicKey) {
55 DHPublicKey dhKey = (DHPublicKey)key;
62 } else if ("X.509".equals(key.getFormat())) {
66 key = (PublicKey)factory.translateKey(key);
67 return implTranslatePublicKey(key);
69 throw new InvalidKeyException("Could not translate key", e);
76 throw new InvalidKeyException("Could not create DH public key", e);
80 PrivateKey implTranslatePrivateKey(PrivateKey key) argument
215 implGetPublicKeySpec(P11Key key, Class keySpec, Session[] session) argument
237 implGetPrivateKeySpec(P11Key key, Class keySpec, Session[] session) argument
[all...]
H A DP11DSAKeyFactory.java50 PublicKey implTranslatePublicKey(PublicKey key) throws InvalidKeyException { argument
52 if (key instanceof DSAPublicKey) {
53 DSAPublicKey dsaKey = (DSAPublicKey)key;
61 } else if ("X.509".equals(key.getFormat())) {
63 byte[] encoded = key.getEncoded();
64 key = new sun.security.provider.DSAPublicKey(encoded);
65 return implTranslatePublicKey(key);
71 throw new InvalidKeyException("Could not create DSA public key", e);
75 PrivateKey implTranslatePrivateKey(PrivateKey key) argument
78 if (key instanceo
211 implGetPublicKeySpec(P11Key key, Class keySpec, Session[] session) argument
235 implGetPrivateKeySpec(P11Key key, Class keySpec, Session[] session) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/util/resources/
H A DOpenListResourceBundle.java69 public Object handleGetObject(String key) { argument
70 if (key == null) {
75 return lookup.get(key); // this class ignores locales
128 // key must be non-null String, value must be non-null
129 String key = (String) contents[i][0];
131 if (key == null || value == null) {
134 temp.put(key, value);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/
H A DPolicyMap.java60 public int generateHashCode(final PolicyMapKey key) {
63 result = 37 * result + key.getService().hashCode();
79 public int generateHashCode(final PolicyMapKey key) {
82 result = 37 * result + key.getService().hashCode();
83 result = 37 * result + ((key.getPort() == null) ? 0 : key.getPort().hashCode());
102 public int generateHashCode(final PolicyMapKey key) {
105 result = 37 * result + key.getService().hashCode();
106 result = 37 * result + ((key.getPort() == null) ? 0 : key
157 getEffectivePolicy(final PolicyMapKey key) argument
162 putSubject(final PolicyMapKey key, final PolicySubject subject) argument
174 setNewEffectivePolicy(final PolicyMapKey key, final Policy newEffectivePolicy) argument
199 createLocalCopy(final PolicyMapKey key) argument
277 getServiceEffectivePolicy(final PolicyMapKey key) argument
281 getEndpointEffectivePolicy(final PolicyMapKey key) argument
285 getOperationEffectivePolicy(final PolicyMapKey key) argument
289 getInputMessageEffectivePolicy(final PolicyMapKey key) argument
293 getOutputMessageEffectivePolicy(final PolicyMapKey key) argument
297 getFaultMessageEffectivePolicy(final PolicyMapKey key) argument
364 putSubject(final ScopeType scopeType, final PolicyMapKey key, final PolicySubject subject) argument
401 setNewEffectivePolicyForScope(final ScopeType scopeType, final PolicyMapKey key, final Policy newEffectivePolicy) argument
[all...]
/openjdk7/jdk/test/java/util/Currency/
H A DPropertiesTest.java92 for (String key: keys) {
93 String beforeVal = before.getProperty(key);
94 String afterVal = after.getProperty(key);
95 System.out.printf("Removing country: %s. before: %s, after: %s", key, beforeVal, afterVal);
97 after.remove(key);
118 for (String key: keys) {
119 String val = p.getProperty(key);
120 String afterVal = after.getProperty(key);
121 System.out.printf("Testing key: %s, val: %s... ", key, va
[all...]
/openjdk7/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/
H A DMapLoops.java41 * though elements of "key" array. On each iteration, it checks if
42 * table includes key. If absent, with probability pinsert it
94 Integer[] key = new Integer[NKEYS];
95 for (int i = 0; i < key.length; ++i)
96 key[i] = new Integer(rng.nextInt());
104 new Runner(map, key, barrier).run();
115 pool.execute(new Runner(map, key, barrier));
132 final Integer[] key; field in class:MapLoops.Runner
138 Runner(Map<Integer,Integer> map, Integer[] key, CyclicBarrier barrier) { argument
140 this.key
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/
H A DHashtable.java41 Object key; field in class:HashtableEntry
48 entry.key = key;
124 * Tests if some key maps into the specified value in this hashtable.
147 * Tests if the specified object is a key in this hashtable.
149 public boolean containsKey(Object key) { argument
152 int hash = key.hashCode();
156 if ((e.hash == hash) && e.key.equals(key))
163 * Returns the value to which the specified key i
165 get(Object key) argument
215 put(Object key, Object value) argument
254 remove(Object key) argument
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/
H A DActiveObjectMap.java42 * traversal of the key-servant association. Access to an instance of this
64 public boolean equals(java.lang.Object key) { argument
65 if (!(key instanceof Key))
67 Key k = (Key) key;
109 public final boolean containsKey(Key key) argument
111 return keyToEntry.containsKey(key);
114 /** get Returbs the entry assigned to the key, or creates a new
117 public final AOMEntry get(Key key) argument
119 AOMEntry result = (AOMEntry)keyToEntry.get(key);
122 putEntry( key, resul
141 putEntry( Key key, AOMEntry value ) argument
191 putEntry(Key key, AOMEntry value) argument
204 removeEntry(AOMEntry entry, Key key) argument
230 putEntry(Key key, AOMEntry value) argument
250 removeEntry(AOMEntry entry, Key key) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/applet/
H A DAppletMessageHandler.java55 String getMessage(String key) { argument
56 return (String)rb.getString(getQualifiedKey(key));
59 String getMessage(String key, Object arg){ argument
60 String basemsgfmt = (String)rb.getString(getQualifiedKey(key));
70 String getMessage(String key, Object arg1, Object arg2) { argument
71 String basemsgfmt = (String)rb.getString(getQualifiedKey(key));
85 String getMessage(String key, Object arg1, Object arg2, Object arg3) { argument
86 String basemsgfmt = (String)rb.getString(getQualifiedKey(key));
104 String getMessage(String key, Object arg[]) { argument
105 String basemsgfmt = (String)rb.getString(getQualifiedKey(key));
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DSunLayoutEngine.java43 * 2) we keep a mapping independent of font using the key Most likely
76 * handed the key when they need to process something. In the native
78 * the key info down to native. Some default cases are the 'default
111 private LayoutEngineKey key; field in class:SunLayoutEngine
123 // actually a factory, key is null so layout cannot be called on it
131 public LayoutEngine getEngine(LayoutEngineKey key) { argument
138 LayoutEngine e = (LayoutEngine)cache.get(key);
140 LayoutEngineKey copy = key.copy();
148 private SunLayoutEngine(LayoutEngineKey key) { argument
149 this.key
[all...]
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DAESCipher.java155 * Initializes this cipher with a key and a source of randomness.
158 * encryption, decryption, key wrapping or key unwrapping, depending on
163 * This behaviour should only be used in encryption or key wrapping
166 * key unwrapping, the IV
167 * (same IV that was used for encryption or key wrapping) must be provided
178 * @param key the secret key
181 * @exception InvalidKeyException if the given key is inappropriate for
184 protected void engineInit(int opmode, Key key, SecureRando argument
213 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
220 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
369 engineGetKeySize(Key key) argument
394 engineWrap(Key key) argument
[all...]
H A DBlowfishCipher.java41 * <p> Blowfish is a 64-bit block cipher with a variable-length key.
160 * Initializes this cipher with a key and a source of randomness.
163 * encryption, decryption, key wrapping or key unwrapping, depending on
168 * This behaviour should only be used in encryption or key wrapping
171 * key unwrapping, the IV
172 * (same IV that was used for encryption or key wrapping) must be provided
183 * @param key the secret key
186 * @exception InvalidKeyException if the given key i
189 engineInit(int opmode, Key key, SecureRandom random) argument
218 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
225 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
375 engineGetKeySize(Key key) argument
395 engineWrap(Key key) argument
[all...]
H A DDESCipher.java155 * Initializes this cipher with a key and a source of randomness.
158 * encryption, decryption, key wrapping or key unwrapping, depending on
163 * This behaviour should only be used in encryption or key wrapping
166 * key unwrapping, the IV
167 * (same IV that was used for encryption or key wrapping) must be provided
178 * @param key the secret key
181 * @exception InvalidKeyException if the given key is inappropriate for
184 protected void engineInit(int opmode, Key key, SecureRando argument
213 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
220 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
370 engineGetKeySize(Key key) argument
395 engineWrap(Key key) argument
[all...]
H A DDESedeCipher.java135 * Initializes this cipher with a key and a source of randomness.
138 * encryption, decryption, key wrapping or key unwrapping, depending on
143 * This behaviour should only be used in encryption or key wrapping
146 * key unwrapping, the IV
147 * (same IV that was used for encryption or key wrapping) must be provided
158 * @param key the secret key
161 * @exception InvalidKeyException if the given key is inappropriate for
164 protected void engineInit(int opmode, Key key, SecureRando argument
193 engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) argument
200 engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) argument
367 engineGetKeySize(Key key) argument
393 engineWrap(Key key) argument
[all...]
/openjdk7/jdk/test/java/util/concurrent/ConcurrentHashMap/
H A DMapLoops.java41 * though elements of "key" array. On each iteration, it checks if
42 * table includes key. If absent, with probability pinsert it
134 Integer[] key = new Integer[n];
135 for (int i = 0; i < key.length; ++i)
136 key[i] = new Integer(rng.next());
137 return key;
140 static void shuffleKeys(Integer[] key) { argument
142 for (int i = key.length; i > 1; --i) {
144 Integer tmp = key[j];
145 key[
173 final Integer[] key; field in class:MapLoops.Runner
179 Runner(Map<Integer,Integer> map, Integer[] key, CyclicBarrier barrier) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/misc/
H A DSoftCache.java54 * <p> Both null values and the null key are supported. This class has the
65 * key for which there is no mapping in the cache, it will in turn invoke the
66 * <code>fill</code> method on that key in an attempt to construct a
73 * protected Object fill(Object key) {
74 * return ((URL)key).getContent();
90 * <code>false</code> for a given key, for the <code>get</code> method to
91 * return a value for a given key but later return <code>null</code>, for the
93 * <code>remove</code> method to return <code>false</code> for a key that
95 * key set, the value set, and the entry set to yield successively smaller
111 HashMap, each soft reference must contain the key tha
121 private Object key; field in class:SoftCache.ValueCell
123 ValueCell(Object key, Object value, ReferenceQueue queue) argument
128 create(Object key, Object value, ReferenceQueue queue) argument
241 containsKey(Object key) argument
265 fill(Object key) argument
285 get(Object key) argument
312 put(Object key, Object value) argument
327 remove(Object key) argument
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DJCDiagnostic.java52 /** The context key for the diagnostic factory. */
89 * @param key The key for the localized error message.
93 DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) {
94 return create(ERROR, null, defaultErrorFlags, source, pos, key, args);
101 * @param key The key for the localized warning message.
106 DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) {
107 return create(WARNING, null, EnumSet.of(DiagnosticFlag.MANDATORY), source, pos, key, args);
115 * @param key Th
92 error( DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
105 mandatoryWarning( DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
119 mandatoryWarning( LintCategory lc, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
132 warning( LintCategory lc, String key, Object... args) argument
144 warning( DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
158 warning( LintCategory lc, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
169 mandatoryNote(DiagnosticSource source, String key, Object... args) argument
178 note(String key, Object... args) argument
189 note( DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
199 fragment(String key, Object... args) argument
213 create( DiagnosticType kind, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
228 create( DiagnosticType kind, LintCategory lc, Set<DiagnosticFlag> flags, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
233 qualify(DiagnosticType t, String key) argument
247 fragment(String key, Object... args) argument
279 final String key; field in class:JCDiagnostic.DiagnosticType
284 DiagnosticType(String key) argument
350 private final String key; field in class:JCDiagnostic
365 JCDiagnostic(DiagnosticFormatter<JCDiagnostic> formatter, DiagnosticType dt, LintCategory lc, Set<DiagnosticFlag> flags, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DLinkedHashMap.java33 * the null key. (HashMap is roughly equivalent to Hashtable, except that it
40 * requires time proportional to its size (the number of key-value mappings)
50 * to the number of key-value mappings in the map. Larger load factors
64 * with a key that is already contained in the Table is not a structural
187 * Returns the number of key-value mappings in this Map.
194 * Returns true if this Map contains no key-value mappings.
221 * key.
223 * @param key key whose presence in this Map is to be tested.
225 public boolean containsKey(Object key) { argument
252 get(Object key) argument
261 getEntry(Object key) argument
332 indexOf(Object key) argument
357 putAhead(Object key, Object value, Entry existEntry) argument
416 put(int index, Object key, Object value) argument
443 put(Object key, Object value) argument
457 remove(Object key) argument
739 Object key; field in class:LinkedHashMap.Entry
747 Entry(int hash, Object key, Object value, Entry next) argument
[all...]

Completed in 66 milliseconds

1234567891011>>