Examples of containsValue()


Examples of gumi.builders.url.UrlParameterMultimap.containsValue()

    }

    @Test
    public void containsValue() {
        UrlParameterMultimap parameterMap = newMapWithContent();
        assertTrue(parameterMap.containsValue("value1"));
        assertFalse(parameterMap.containsValue("value2"));
    }

    @Test
    public void replaceValues() {
View Full Code Here

Examples of it.eng.spagobi.behaviouralmodel.lov.bo.LovResultHandler.containsValue()

          value = "%";
        } else {
          value = URLDecoder.decode(val, "UTF-8");
        }
        String description = null;
        if (!value.equals("") && !lovResultHandler.containsValue(value, lovProvDet
            .getValueColumnName())) {
          logger.error("Parameter '" + biparam.getLabel() + "' cannot assume value '" + value + "'" +
              " for user '" + ((UserProfile)this.userProfile).getUserId().toString()
              + "' with role '" + this.executionRole + "'.");
          List l = new ArrayList();
View Full Code Here

Examples of it.unimi.dsi.fastutil.ints.Int2IntRBTreeMap.containsValue()

    if ( td.numberOfSkipTowers > 0 ) { // There actually is at least a tower.
      /* Now we repeat this operation, trying to obtain the best value for the
       * average entry bit length.
       */

      while( candidates.size() < MAX_TRY && ! candidates.containsValue( entryBitLength = (int)( td.bitsForTowers() / td.numberOfEntries() ) ) ) {
        td.clear();
        tryTower( quantumBitLength, positionsQuantumBitLength, entryBitLength, toTheEnd, cacheSkipBitCount, td, false );
        candidates.put( (int)( td.bitsForTowers() / td.numberOfEntries() ), entryBitLength );
      }

View Full Code Here

Examples of java.awt.RenderingHints.containsValue()

  public void test(TestHarness harness) {

    RenderingHints h1 = new RenderingHints(
      RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_OFF
    );
    harness.check(h1.containsValue(RenderingHints.VALUE_TEXT_ANTIALIAS_OFF));
    harness.check(!h1.containsValue(RenderingHints.VALUE_TEXT_ANTIALIAS_ON));
    harness.check(!h1.containsValue(null));
   
  }
View Full Code Here

Examples of java.util.AbstractMap.containsValue()

     * @tests java.util.AbstractMap#containsValue(Object)
     */
    public void test_containValue() {
        AbstractMap map = new AMT();

        assertFalse(map.containsValue("v"));
        assertFalse(map.containsValue(null));

        map.put("k", "v");
        map.put("key", null);
        map.put(null, "value");
View Full Code Here

Examples of java.util.EnumMap.containsValue()

    public void test_containsValueLjava_lang_Object() {
        EnumMap enumSizeMap = new EnumMap(Size.class);
        Double double1 = new Double(3);
        Double double2 = new Double(3);

        assertFalse("Returned true for uncontained value", enumSizeMap //$NON-NLS-1$
                .containsValue(double1));
        enumSizeMap.put(Size.Middle, 2);
        enumSizeMap.put(Size.Small, double1);
        assertTrue("Returned false for contained value", enumSizeMap //$NON-NLS-1$
                .containsValue(double1));
View Full Code Here

Examples of java.util.HashMap.containsValue()

        Map entries = new HashMap();

        Color c = new Color( "blah", 0, entries );

        assertTrue( entries.containsKey("blah") );
        assertTrue( entries.containsValue(c) );

        OtherColor c2 = new OtherColor( "blah", 0, entries );
        assertTrue( entries.containsKey("blah") );
        assertFalse( entries.containsValue(c) );
        assertTrue( entries.containsValue(c2) );
View Full Code Here

Examples of java.util.HashMap.containsValue()

        assertTrue( entries.containsValue(c) );

        OtherColor c2 = new OtherColor( "blah", 0, entries );
        assertTrue( entries.containsKey("blah") );
        assertFalse( entries.containsValue(c) );
        assertTrue( entries.containsValue(c2) );
    }

    public void testEquals()
    {
        assertTrue( Color.RED.equals( Color.RED ) );
View Full Code Here

Examples of java.util.HashMap.containsValue()

        Map entries = new HashMap();

        Color c = new Color( "blah", entries );

        assertTrue( entries.containsKey("blah") );
        assertTrue( entries.containsValue(c) );

        OtherColor c2 = new OtherColor( "blah", entries );
        assertTrue( entries.containsKey("blah") );
        assertFalse( entries.containsValue(c) );
        assertTrue( entries.containsValue(c2) );
View Full Code Here

Examples of java.util.HashMap.containsValue()

        assertTrue( entries.containsKey("blah") );
        assertTrue( entries.containsValue(c) );

        OtherColor c2 = new OtherColor( "blah", entries );
        assertTrue( entries.containsKey("blah") );
        assertFalse( entries.containsValue(c) );
        assertTrue( entries.containsValue(c2) );
    }

    public void testEquals()
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.