Examples of values()


Examples of java.util.LinkedHashMap.values()

                    final ParameterFacade parameter = (ParameterFacade)parameterIterator.next();
                    formFieldMap.put(parameter.getName(), parameter);
                }
            }
        }
        return new ArrayList(formFieldMap.values());
    }
}
View Full Code Here

Examples of java.util.Map.values()

  @Test
  public void testCreation() {
    Map map = context.getBeansOfType(Mapper.class);
    assertFalse(map.isEmpty());
    Object bean = map.values().iterator().next();
    assertTrue(bean instanceof DozerBeanMapper);

    DozerBeanMapper mapper = (DozerBeanMapper) bean;
    assertFalse(mapper.getMappingFiles().isEmpty());
  }
View Full Code Here

Examples of java.util.NavigableMap.values()

        assertEquals(103, decendingMap.pollLastEntry().getValue());
    }

    public void test_DescendingSubMap_values() {
        NavigableMap decendingMap = tm.descendingMap();
        Collection values = decendingMap.values();
        assertFalse(values.isEmpty());
        assertFalse(values.contains(1000));
        for (int i = 999; i > 0; i--) {
            assertTrue(values.contains(i));
        }
View Full Code Here

Examples of java.util.Properties.values()

            FileInputStream fos = null;
            try {
                fos = new FileInputStream(filename);
                Properties properties = new Properties();
                properties.load(fos);
                for (Object value : properties.values())
                    conversions.add(new Conversion((String) value));
               
            } catch (IOException e) {
                logger.error("Failed to load database column conversion scripts", e);
            } finally {
View Full Code Here

Examples of java.util.SortedMap.values()

    public TaskDependency[] getDependencies(Task task) {
        SearchKey fromKey = new RangeSearchFromKey(task);
        SearchKey toKey = new RangeSearchToKey(task);
        SortedMap submap = mySearchKey2dependency.subMap(fromKey, toKey);
        return (TaskDependency[]) submap.values()
                .toArray(new TaskDependency[0]);
    }

    public TaskDependency[] getDependenciesAsDependant(Task dependant) {
        SearchKey fromKey = new SearchKey(SearchKey.DEPENDANT, dependant
View Full Code Here

Examples of java.util.TreeMap.values()

      throw new ServletException(e);
    }
    // Only 8 custom fields fit on the detail screen so we have to pull only the
    // first 8 out.
    TreeMap customFieldMap = customField.getCustomFieldData("Entity");
    Collection customFieldValues = customFieldMap.values();
    int arraySize = customFieldValues.size() > 4 ? 4 : customFieldValues.size();
    CustomFieldVO[] fieldArray = new CustomFieldVO[arraySize];
    Iterator i = customFieldValues.iterator();
    int count = 0;
    while (i.hasNext() && count < 4) {
View Full Code Here

Examples of java.util.WeakHashMap.values()

    }

    private void closeImpl(boolean failIfActive) {
        if (transaction instanceof WeakHashMap) {
            WeakHashMap threadTransactionMap = (WeakHashMap)transaction;
            for (Iterator it = threadTransactionMap.values().iterator(); it.hasNext();) {
                TransactionImpl txn = (TransactionImpl) it.next();
                if (txn.isActive()) {
                    if (failIfActive) {
                        throw new JDOUserException(I18N.msg("E_open_txn"));
                    }
View Full Code Here

Examples of java.util.concurrent.ConcurrentHashMap.values()

    public <T extends ConfigObjectType<T, C>, C extends ConfiguredObject<T, C>> Collection<? extends C> getConfiguredObjects(ConfigObjectType<T,C> type)
    {
        ConcurrentHashMap typeMap = _typeMap.get(type);
        if(typeMap != null)
        {
            return typeMap.values();
        }
        else
        {
            return Collections.EMPTY_LIST;
        }
View Full Code Here

Examples of java.util.concurrent.ConcurrentMap.values()

    field.set(testClass, mockCache);
   
    Iterator<StatementHandle> mockIterator = createNiceMock(Iterator.class);
    StatementHandle mockStatement = createNiceMock(StatementHandle.class);
   
    expect(mockCache.values()).andReturn(mockStatementCollections).anyTimes();
    expect(mockStatementCollections.iterator()).andReturn(mockIterator).anyTimes();
    expect(mockIterator.hasNext()).andReturn(true).times(2).andReturn(false).once();
    expect(mockIterator.next()).andReturn(mockStatement).anyTimes();
    mockStatement.close();
    expectLastCall().once().andThrow(new SQLException()).once();
View Full Code Here

Examples of java.util.concurrent.ConcurrentNavigableMap.values()

    /**
     * values collection contains all values
     */
    public void testDescendingValues() {
        ConcurrentNavigableMap map = dmap5();
        Collection s = map.values();
        assertEquals(5, s.size());
        assertTrue(s.contains("A"));
        assertTrue(s.contains("B"));
        assertTrue(s.contains("C"));
        assertTrue(s.contains("D"));
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.