Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for getMax (0.06 sec)

  1. guava-tests/test/com/google/common/math/StatsTest.java

          assertEquivalent(stats.mean(), streamStats.getAverage());
          assertEquivalent(stats.sum(), streamStats.getSum());
          assertEquivalent(stats.max(), streamStats.getMax());
          assertEquivalent(stats.min(), streamStats.getMin());
        }
      }
    
      private static void assertEquivalent(double actual, double expected) {
        if (expected == POSITIVE_INFINITY) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc methodDesc = beanDesc.getMethodDesc("getAaa");
            assertThat(methodDesc, is(notNullValue()));
            assertThat(methodDesc.getMethodName(), is("getAaa"));
            beanDesc.getMethodDesc("getaaa");
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetMethodNoException() throws Exception {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

            final PropertyDesc propDesc = beanDesc.getPropertyDesc("cal");
            final Date date = new Date();
            propDesc.setValue(myBean, date);
            assertThat(myBean.getCal().getTime(), is(date));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testSetIntegerValueToString() throws Exception {
            final MyBean myBean = new MyBean();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

            final MyClass2 dest = new MyClass2();
            dest.setAaa("aaa");
            dest.setBbb("bbb");
            dest.setDdd("ddd");
    
            BeanUtil.copyBeanToBean(src, dest);
            assertThat(dest.getAaa(), is("111"));
            assertThat(dest.getBbb(), is(nullValue()));
            assertThat(dest.getDdd(), is("ddd"));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

            StringWriter sw = new StringWriter();
            properties.save(sw);
            String msg = sw.toString();
            assertTrue(sw.toString().endsWith(RESULT3), msg);
            List<String> rawValue = properties.getRaw(KEY1);
            assertEquals(2, (Object) rawValue.size());
            assertEquals(KEY1A + " = " + VALUE1, rawValue.get(0));
            assertEquals(VALUE1, rawValue.get(1));
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            @SuppressWarnings("unchecked")
            ArrayMap<String, String> copy = (ArrayMap<String, String>) SerializeUtil.serialize(map);
            assertThat(copy.getAt(0), is(nullValue()));
            assertThat(copy.getAt(1), is("test"));
            assertThat(copy.getAt(2), is("test2"));
            assertThat(map.equals(copy), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Striped.java

       *
       * @param index the index of the stripe to return; must be in {@code [0...size())}
       * @return the stripe at the specified index
       */
      public abstract L getAt(int index);
    
      /**
       * Returns the index to which the given key is mapped, so that getAt(indexFor(key)) == get(key).
       */
      abstract int indexFor(Object key);
    
      /** Returns the total number of stripes in this instance. */
      public abstract int size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            return pd;
        }
    
        @Override
        public PropertyDesc getPropertyDesc(final int index) {
            assertArgumentArrayIndex("index", index, getPropertyDescSize());
    
            return propertyDescCache.getAt(index);
        }
    
        @Override
        public int getPropertyDescSize() {
            return propertyDescCache.size();
        }
    
        @Override
        public Iterable<PropertyDesc> getPropertyDescs() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/ArrayMap.java

            }
            return null;
        }
    
        /**
         * インデックスで指定された位置の値を返します。
         *
         * @param index
         *            インデックス
         * @return インデックスで指定された位置の値
         */
        public V getAt(final int index) {
            return getEntryAt(index).getValue();
        }
    
        /**
         * インデックスで指定された位置のキーを返します。
         *
         * @param index
         *            インデックス
         * @return インデックスで指定された位置のキー
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            for (String key : properties.keySet()) {
                String v = this.get(key);
                List<String> comments = properties.getComments(key);
                List<String> value = properties.getRaw(key);
                if (v == null) {
                    this.put(key, comments, value);
                    modified = true;
                } else if (!v.equals(properties.get(key))) {
                    if (comments.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
Back to top