0

I've created a linkedlist<FileInfo> - file info is class which contains following:

class FileInfo {
      public String Name; 
      public Long Length; 
      public Long LastModified;
      public String LockedBy;
}

I need to order this list based on name or lastmodified. How can I achieve this? I can't use

Collections.sort(actTreeFileInfoLinkdList)

because generic is not a string. How can I sort it? I'm new in java, so maybe there is obvious and simple answer I cant figure out, thanks :)

tso
  • 4,732
  • 2
  • 22
  • 32
h0neybaLL
  • 91
  • 1
  • 2
  • 9

0 Answers0