BrightSide Workbench Full Report + Source Code
org.turro.attach.version.AttachVersionMap Class Reference
Inheritance diagram for org.turro.attach.version.AttachVersionMap:
Collaboration diagram for org.turro.attach.version.AttachVersionMap:

Public Member Functions

void addAttachment (Attachment attachment)
 
Set< AttachmentgetVersionedAttachments ()
 

Detailed Description

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

Definition at line 29 of file AttachVersionMap.java.

Member Function Documentation

◆ addAttachment()

void org.turro.attach.version.AttachVersionMap.addAttachment ( Attachment  attachment)

Definition at line 31 of file AttachVersionMap.java.

31  {
32  AttachVersionSet avs = get(attachment.getFileName());
33  if(avs == null) {
34  avs = new AttachVersionSet();
35  put(attachment.getFileName(), avs);
36  }
37  avs.add(attachment);
38  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVersionedAttachments()

Set<Attachment> org.turro.attach.version.AttachVersionMap.getVersionedAttachments ( )

Definition at line 40 of file AttachVersionMap.java.

40  {
41  HashSet<Attachment> set = new HashSet<Attachment>();
42  for(String s : keySet()) {
43  set.add(get(s).first());
44  }
45  return set;
46  }
Here is the caller graph for this function:

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