代码搜索:Collection
找到约 10,000 项符合「Collection」的源代码
代码结果 10,000
www.eeworm.com/read/464569/7064976
java chapter14n1.java
/**
* demonstration of use of "Moveable" interface
*/
public class Chapter14n1
{
public static void main(String[] args)
{
MyStuff[] collection = new MyStuff[3] ;
Moveable[] moveCol = ne
www.eeworm.com/read/464569/7064995
java chapter13n2.java
/**
* demonstration of Polymorphism
*/
public class Chapter13n2
{
public static void main(String[] args)
{
Reservation[] collection = new Reservation[4] ;
BasicReservation br = new Bas
www.eeworm.com/read/166571/7095748
cpp staticpoly.cpp
/* The following code example is taken from the book
* "C++ Templates - The Complete Guide"
* by David Vandevoorde and Nicolai M. Josuttis, Addison-Wesley, 2002
*
* (C) Copyright David Vandevoorde
www.eeworm.com/read/154303/7106929
txt ex7_38.txt
Example 7.38 Composite Transfer Object Class
public class ProjectDetailsData
implements java.io.Serializable {
public ProjectTO projectData;
public ProjectManagerTO projectManagerData;
publ
www.eeworm.com/read/154303/7106974
txt ex7_23.txt
Example 7.23 ResourceEntityBean.java: Composite Entity
package corepatterns.apps.psa.ejb;
import corepatterns.apps.psa.core.*;
import corepatterns.apps.psa.dao.*;
import java.sql.*;
import
www.eeworm.com/read/154303/7107030
txt ex8_31.txt
Example 8.31 QueriesImpl Class
// QueryImpl.java
package com.corej2eepatterns.business.impl;
import com.corej2eepatterns.business.hr.Department;
import com.corej2eepatterns.business.hr.Employ
www.eeworm.com/read/154303/7107045
txt ex7_17.txt
Example 7.17 Order
import java.util.Collection;
public class Order {
String orderId;
Collection lineItems;
. . .
public void addLineItems( LineItem[] lines ) {
www.eeworm.com/read/154303/7107071
txt ex7_27.txt
Example 7.27 Implementing the Composite Transfer Object
public class ResourceCompositeTO {
private ResourceTO resourceData;
private Collection skillSets;
private Collection blockOutTimes;
www.eeworm.com/read/154303/7107108
txt ex7_2.txt
Example 7.2 Remote Interface for ResourceSession
// imports
...
public interface ResourceSession extends EJBObject {
public ResourceTO setCurrentResource(String resourceId)
throws RemoteExc
www.eeworm.com/read/417833/7114492
txt java_util_package.txt
Collection
RetainAll :保留两个Collection的交集。注意,如果该Collection是由Arrays.asList转换而来,那么这个方法会失败。因为转换来的List接口不支持这个方法
Samples:
public static void collectionTest()
{
Collection c1 = new ArrayLi