Searched refs:value (Results 176 - 200 of 368) sorted by relevance

1234567891011>>

/libcore/luni/src/main/java/java/util/
H A DHashtable.java89 * The value of this field is generally .75 * capacity, except when
189 * The returned value will be between 0 and MAXIMUM_CAPACITY (inclusive).
199 * Returns a new {@code Hashtable} with the same key/value pairs, capacity
230 * Returns true if this {@code Hashtable} has no key/value pairs.
232 * @return {@code true} if this {@code Hashtable} has no key/value pairs,
241 * Returns the number of key/value pairs in this {@code Hashtable}.
243 * @return the number of key/value pairs in this {@code Hashtable}.
252 * Returns the value associated with the specified key in this
256 * the key of the value returned.
257 * @return the value associate
314 containsValue(Object value) argument
343 contains(Object value) argument
363 put(K key, V value) argument
399 constructorPut(K key, V value) argument
666 V value; field in class:Hashtable.HashtableEntry
670 HashtableEntry(K key, V value, int hash, HashtableEntry<K, V> next) argument
685 setValue(V value) argument
801 containsMapping(Object key, Object value) argument
817 removeMapping(Object key, Object value) argument
[all...]
H A DWeakHashMap.java25 * key/value mapping is removed when the key is no longer referenced. All
62 V value; field in class:WeakHashMap.Entry
74 value = object;
82 return value;
86 V result = value;
87 value = object;
100 && (value == null ? value == entry.getValue() : value
106 return hash + (value
527 containsValue(Object value) argument
607 put(K key, V value) argument
[all...]
/libcore/luni/src/test/java/tests/api/java/util/
H A DAbstractMapTest.java64 public Object put(Object key, Object value) { argument
104 Object value = new Object();
107 map1.put("key", value);
108 assertSame("HashMap(0)", map1.remove("key"), value);
111 map4.put(key, value);
112 assertSame("IdentityHashMap", map4.remove(key), value);
115 map5.put(key, value);
116 assertSame("LinkedHashMap", map5.remove(key), value);
124 map6.put(key, value);
125 assertSame("TreeMap", map6.remove(key), value);
[all...]
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/
H A DMockReader.java111 public void setFeature(String name, boolean value) { argument
112 if (value) {
119 public void setProperty(String name, Object value) throws SAXNotRecognizedException, argument
121 if (value == null) {
124 properties.put(name, value);
/libcore/luni/src/main/java/java/lang/
H A DCaseMapper.java35 * this class should be changed so that you instantiate it with the String and its value,
43 * if nothing changes. We need 'value', 'offset', and 'count' because they're not otherwise
46 public static String toLowerCase(Locale locale, String s, char[] value, int offset, int count) { argument
56 char ch = value[i];
61 } else if (ch == GREEK_CAPITAL_SIGMA && isFinalSigma(value, offset, count, i)) {
69 System.arraycopy(value, offset, newValue, 0, newCount);
83 private static boolean isFinalSigma(char[] value, int offset, int count, int index) { argument
89 char previous = value[index - 1];
96 char next = value[index + 1];
142 public static String toUpperCase(Locale locale, String s, char[] value, in argument
[all...]
/libcore/luni/src/main/java/java/util/logging/
H A DLevel.java33 * set of predefined logging levels, each associated with an integer value.
155 * The integer value indicating the level.
159 private final int value; field in class:Level
176 * level value.
181 * an integer value indicating the level.
191 * value and resource bundle name.
196 * an integer value indicating the level.
207 this.value = level;
241 * Gets the integer value indicating this level.
243 * @return this level's integer value
[all...]
/libcore/luni/src/main/java/java/lang/reflect/
H A DField.java43 * and the field's value can be accessed dynamically.
243 * Returns the value of the field in the specified object. This reproduces
246 * <p>If the type of this field is a primitive type, the field value is
260 * @return the field value, possibly boxed
273 * Returns the value of the field in the specified object as a {@code
287 * @return the field value
301 * Returns the value of the field in the specified object as a {@code byte}.
315 * @return the field value
328 * Returns the value of the field in the specified object as a {@code char}.
342 * @return the field value
586 set(Object object, Object value) argument
619 setBoolean(Object object, boolean value) argument
651 setByte(Object object, byte value) argument
683 setChar(Object object, char value) argument
715 setDouble(Object object, double value) argument
747 setFloat(Object object, float value) argument
779 setInt(Object object, int value) argument
811 setLong(Object object, long value) argument
843 setShort(Object object, short value) argument
907 setField(Object o, Class<?> declaringClass, Class<?> type, int slot, boolean noAccessCheck, Object value) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/x501/
H A DAttributeTypeAndValue.java185 /** Attribute value */
186 private final AttributeValue value; field in class:AttributeTypeAndValue
189 private AttributeTypeAndValue(int[] oid, AttributeValue value) throws IOException { argument
195 this.value = value;
204 * @param value
205 * attribute value
209 public AttributeTypeAndValue(String sOid, AttributeValue value) throws IOException { argument
224 this.value = value;
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentHashMap.java46 * vary. Ideally, you should choose a value to accommodate as many
48 * significantly higher value than you need can waste space and time,
49 * and a significantly lower value can lead to thread contention. But
51 * not usually have much noticeable impact. A value of one is
63 * does <em>not</em> allow <tt>null</tt> to be used as a key or value.
118 * The maximum capacity, used if a higher value is implicitly
149 * Mask value for indexing into segments. The upper bits of a
155 * Shift value for indexing within segments.
175 volatile V value; field in class:ConcurrentHashMap.HashEntry
178 HashEntry(int hash, K key, V value, HashEntr argument
333 put(K key, int hash, V value, boolean onlyIfAbsent) argument
453 scanAndLockForPut(K key, int hash, V value) argument
519 remove(Object key, int hash, Object value) argument
578 replace(K key, int hash, V value) argument
937 containsValue(Object value) argument
996 contains(Object value) argument
1014 put(K key, V value) argument
1034 putIfAbsent(K key, V value) argument
1078 remove(Object key, Object value) argument
1105 replace(K key, V value) argument
1301 setValue(V value) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DIoBridge.java53 if (available.value < 0) {
60 available.value = 0;
62 return available.value;
259 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
263 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
267 // Since setting this from java.net always sets IPv4 and IPv6 to the same value,
309 public static void setSocketOption(FileDescriptor fd, int option, Object value) throws SocketException { argument
311 setSocketOptionErrno(fd, option, value);
317 private static void setSocketOptionErrno(FileDescriptor fd, int option, Object value) throws ErrnoException, SocketException { argument
323 Libcore.os.setsockoptIpMreqn(fd, IPPROTO_IP, IP_MULTICAST_IF, (Integer) value);
[all...]
/libcore/luni/src/main/java/org/xml/sax/ext/
H A DAttributes2Impl.java79 * Returns the current value of the attribute's "declared" flag.
92 * Returns the current value of the attribute's "declared" flag.
108 * Returns the current value of the attribute's "declared" flag.
123 * Returns the current value of an attribute's "specified" flag.
126 * @return current flag value
140 * Returns the current value of an attribute's "specified" flag.
145 * @return current flag value
162 * Returns the current value of an attribute's "specified" flag.
165 * @return current flag value
221 * "specified" flag to true. To set that flag's value
240 addAttribute(String uri, String localName, String qName, String type, String value) argument
288 setDeclared(int index, boolean value) argument
307 setSpecified(int index, boolean value) argument
[all...]
/libcore/luni/src/test/java/libcore/util/
H A DBasicLruCacheTest.java76 @Override protected void entryEvicted(String key, String value) {
77 evictionLog.add(key + "=" + value);
92 * Replacing the value for a key doesn't cause an eviction but it does bring
99 @Override protected void entryEvicted(String key, String value) {
100 evictionLog.add(key + "=" + value);
115 @Override protected void entryEvicted(String key, String value) {
116 evictionLog.add(key + "=" + value);
/libcore/luni/src/test/java/tests/org/w3c/dom/
H A DSetNamedItemNS.java140 String value;
150 value = retnode.getNodeValue();
151 assertEquals("throw_Equals", "newValue", value);
205 String value;
213 value = retnode.getNodeValue();
214 assertEquals("throw_Equals", "Yes", value);
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java46 or parser class names (value:
94 * Return the current value of the feature with given name.
98 * @return The value of named feature.
103 Boolean value = (Boolean) features.get(name);
104 return value != null ? value.booleanValue() : false;
110 * By default the value of this is set to false.
138 * By default the value of this is set to false.
185 final Boolean value = (Boolean) features.get(key);
186 if(value !
[all...]
/libcore/luni/src/test/java/tests/java/security/
H A DIdentityTest.java59 Object value[] = {
66 for (int k=0; k<value.length; k+=2) {
67 assertEquals(value[k+1], new Boolean(i1.equals(value[k])));
68 if (Boolean.TRUE.equals(value[k+1])) assertEquals(i1.hashCode(), value[k].hashCode());
219 Object[] value = {
228 for (int k=0; k<value.length; k+=2){
229 assertEquals(value[k+1], new Boolean(i.identityEquals((Identity)value[
[all...]
/libcore/luni/src/main/java/java/io/
H A DSerializationHandleMap.java31 /* Actual number of key-value pairs. */
54 int value = oldValues[i];
57 values[index] = value;
95 public int put(Object key, int value) { argument
97 int _value = value;
107 // insert the key and assign the value to -1 initially
112 // insert value to where it needs to go, return the old value
135 // store the value for this key
163 // clear both the key and the value
[all...]
H A DObjectOutputStream.java127 * Puts the value of the boolean field identified by {@code name} to the
132 * @param value
133 * the value that is put to the persistent field.
135 public abstract void put(String name, boolean value); argument
138 * Puts the value of the character field identified by {@code name} to
143 * @param value
144 * the value that is put to the persistent field.
146 public abstract void put(String name, char value); argument
149 * Puts the value of the byte field identified by {@code name} to the
154 * @param value
157 put(String name, byte value) argument
168 put(String name, short value) argument
179 put(String name, int value) argument
190 put(String name, long value) argument
201 put(String name, float value) argument
212 put(String name, double value) argument
223 put(String name, Object value) argument
659 write(int value) argument
672 writeBoolean(boolean value) argument
685 writeByte(int value) argument
700 writeBytes(String value) argument
713 writeChar(int value) argument
727 writeChars(String value) argument
823 writeDouble(double value) argument
1002 writeFloat(float value) argument
1094 writeInt(int value) argument
1107 writeLong(long value) argument
1803 writeShort(int value) argument
1828 writeUTF(String value) argument
[all...]
/libcore/luni/src/test/java/tests/security/cert/
H A DX509CRL2Test.java92 byte[] value = pemCert.getExtensionValue(oid);
93 if (value != null && value.length > 0) {
95 assertTrue("The extension value for the oid " + oid
97 value[0] == 0x04);
/libcore/luni/src/main/java/libcore/net/http/
H A DRawHeaders.java37 * value by this class. It is the caller's responsibility to detect and split
134 * value.
146 * Add a field with the specified value.
148 public void add(String fieldName, String value) { argument
152 if (value == null) {
158 System.logW("Ignoring HTTP header field '" + fieldName + "' because its value is null");
162 namesAndValues.add(value.trim());
169 namesAndValues.remove(i); // value
175 for (String value : headerFields) {
176 add(fieldName, value);
184 set(String fieldName, String value) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xml/
H A DExpatReader.java94 public void setFeature(String name, boolean value) argument
103 if (value) {
112 processNamespaces = value;
117 processNamespacePrefixes = value;
122 if (value) {
146 public void setProperty(String name, Object value) argument
154 if (value instanceof LexicalHandler || value == null) {
155 this.lexicalHandler = (LexicalHandler) value;
158 throw new SAXNotSupportedException("value does
[all...]
/libcore/luni/src/main/java/java/nio/
H A DMemoryBlock.java148 public final void pokeByte(int offset, byte value) { argument
149 Memory.pokeByte(address + offset, value);
212 public final void pokeShort(int offset, short value, ByteOrder order) { argument
213 Memory.pokeShort(address + offset, value, order.needsSwap);
220 public final void pokeInt(int offset, int value, ByteOrder order) { argument
221 Memory.pokeInt(address + offset, value, order.needsSwap);
228 public final void pokeLong(int offset, long value, ByteOrder order) { argument
229 Memory.pokeLong(address + offset, value, order.needsSwap);
/libcore/luni/src/main/java/java/util/regex/
H A DMatcher.java532 * @param value
533 * the new value for anchoring bounds.
536 public Matcher useAnchoringBounds(boolean value) { argument
537 anchoringBounds = value;
538 useAnchoringBoundsImpl(address, value);
560 * @param value
561 * the new value for transparent bounds.
564 public Matcher useTransparentBounds(boolean value) { argument
565 transparentBounds = value;
566 useTransparentBoundsImpl(address, value);
653 useAnchoringBoundsImpl(int addr, boolean value) argument
654 useTransparentBoundsImpl(int addr, boolean value) argument
[all...]
/libcore/luni/src/main/java/javax/xml/transform/
H A DTransformerFactory.java189 * @param title The value of the title attribute to match. May be null.
190 * @param charset The value of the charset attribute to match. May be null.
237 * It is possible for an <code>TransformerFactory</code> to expose a feature value but be unable to change its state.
258 * @param value Is feature state <code>true</code> or <code>false</code>.
264 public abstract void setFeature(String name, boolean value) argument
268 * Look up the value of a feature.
275 * It is possible for an <code>TransformerFactory</code> to expose a feature value but be unable to change its state.
294 * @param value The value of the attribute.
296 public abstract void setAttribute(String name, Object value); argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Integer.java92 * Converts decoded ASN.1 Integer to int value.
93 * If the object represents an integer value
97 * @return decoded int value.
107 * @return decoded BigInteger value.
114 * Converts primitive int value to a form most suitable for encoding.
116 * @param value primitive value to be encoded
119 public static Object fromIntValue(int value) { argument
120 return BigInteger.valueOf(value).toByteArray();
H A DBitString.java26 * Represents ASN.1 bit string value
81 public void setBit(int bit, boolean value) { argument
84 if (value) {

Completed in 1861 milliseconds

1234567891011>>