BrightSide Workbench Full Report + Source Code
org.turro.entities.EntityListAdapter< E extends IElephantEntity > Class Template Reference
Inheritance diagram for org.turro.entities.EntityListAdapter< E extends IElephantEntity >:
Collaboration diagram for org.turro.entities.EntityListAdapter< E extends IElephantEntity >:

Public Member Functions

 EntityListAdapter (Collection entities)
 
boolean addAll (Collection entities)
 
boolean add (Object entity)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file EntityListAdapter.java.

Constructor & Destructor Documentation

◆ EntityListAdapter()

Definition at line 30 of file EntityListAdapter.java.

30  {
31  addAll(entities);
32  }
boolean addAll(Collection entities)
Here is the call graph for this function:

Member Function Documentation

◆ add()

boolean org.turro.entities.EntityListAdapter< E extends IElephantEntity >.add ( Object  entity)

Definition at line 41 of file EntityListAdapter.java.

41  {
42  IElephantEntity controller = Entities.getController(entity);
43  if(!controller.isEmpty()) {
44  return super.add(controller);
45  }
46  return false;
47  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAll()

boolean org.turro.entities.EntityListAdapter< E extends IElephantEntity >.addAll ( Collection  entities)

Definition at line 35 of file EntityListAdapter.java.

35  {
36  entities.forEach(e -> add(e));
37  return true;
38  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: