Duplicates in Collections

Hello All,
Good morning to all OTN users.
I have below requirement to identify the duplicates in the Collection and I am not sure how to implement in easy way. Requesting all your help in doing the same.
Requirement:
I have a collection based on the record like below,
TYPE tt_type IS RECORD(
a VARCHAR2(1),
b VARCHAR2(25),
c VARCHAR2(25),
d VARCHAR2(20),
e VARCHAR2(1),
f VARCHAR2(20),
g VARCHAR2(1),
h VARCHAR2(20),
i VARCHAR2(1),
j VARCHAR2(20),
k VARCHAR2(3),
l VARCHAR2(8),
m VARCHAR2(8),
n VARCHAR2(25),
o VARCHAR2(25),
p VARCHAR2(2),
q VARCHAR2(25));
TYPE tty IS TABLE OF tt_type INDEX BY BINARY_INTEGER;
l_rec tty;
I am loading the l_rec based on some buisiness requirement. After loading the data, I have to identify the duplicates based on the two columns (This
is not possible in the SQL query due to the dependency on other queries).Basically I have to identify the duplicates based on column's "a" and "b".
Values will be like this:
a b
1) 123 098
2) 123 100
3) 345 154
4) 789 189
Here 1st and 2 nd records are duplicates (as per our functionality) and I have to remove the first record as second record has larger value for column "b" compared to 1st record.
Please help in implementing this.
Thanks a lot in advance.
Best regards,
Pavan

862637 wrote:
I cannot do it in the SQL, due to multiple dependencies.Assuming that statement is valid and pure array processing in PL/SQL is the solution, then removing duplicates can be done as follows:
1) quick sort the array
2) copy the array and in copying skip duplicates
The following code demonstrates this approach.
SQL> create or replace type TStrings is table of varchar2(4000);
  2  /
Type created.
SQL>
SQL> create or replace package ArrayLib is
  2          procedure QuickSort( array in out nocopy TStrings );
  3          procedure RemoveDuplicates(  array in out nocopy TStrings, sorted boolean default false );
  4  end;
  5  /
Package created.
SQL>
SQL> create or replace package body ArrayLib is
  2          procedure SwapPivots( array in out nocopy TStrings, pivot1 number, pivot2 number ) is
  3                  pivotValue      varchar2(32767);
  4          begin
  5                  pivotValue := array(pivot1);
  6                  array(pivot1) := array(pivot2);
  7                  array(pivot2) := pivotValue;
  8          end;
  9 
10          procedure  Partition( array in out nocopy TStrings, left number, right number, pivotIndex number, storeIndex out number ) is
11                  pivotValue      varchar2(32767);
12          begin
13                  pivotValue := array(pivotIndex);
14                  SwapPivots( array, pivotIndex, right );
15                  storeIndex := left;
16                  for i in left..right - 1 loop
17                          if array(i) < pivotValue then
18                                  SwapPivots( array, i, storeIndex );
19                                  storeIndex := storeIndex + 1;
20                          end if;
21                  end loop;
22                  SwapPivots( array, storeIndex, right );
23          end;
24 
25          procedure QuickSort( array in out nocopy TStrings, left number, right number ) is
26                  pivotIndex      number;
27                  pivotNewIndex   number;
28 
29          begin
30                  if left < right then
31                          pivotIndex := trunc( DBMS_RANDOM.value( left, right ) );
32 
33                          Partition( array, left, right, pivotIndex, pivotNewIndex );
34                          QuickSort( array, left, pivotNewIndex-1 );
35                          QuickSort( array, pivotNewIndex+1, right );
36                  end if;
37          end;
38 
39          procedure QuickSort( array in out nocopy TStrings ) is
40          begin
41                   QuickSort( array, 1, array.Count );
42          end;
43 
44          procedure RemoveDuplicates(  array in out nocopy TStrings, sorted boolean default false ) is
45                  unqArray        TStrings;
46          begin
47                  if not sorted then
48                          QuickSort( array );
49                  end if;
50 
51                  for i in 1..array.Count loop
52                          case
53                                  when unqArray is null then
54                                          unqArray := new TStrings( array(i) );
55                                  when unqArray(unqArray.Count) = array(i) then
56                                          --// skip duplicate
57                                          null;
58                          else
59                                  unqArray.Extend(1);
60                                  unqArray(unqArray.Count) := array(i);
61                          end case;
62                  end loop;
63 
64                  array := unqArray;
65          end;
66 
67  end;
68  /
Package body created.
SQL>
SQL> --// example
SQL> declare
  2          array   TStrings;
  3  begin
  4          select
  5                  ename bulk collect into array
  6          from    emp;
  7 
  8          --// add 3 duplicates
  9          array.Extend(3);
10          array( array.Count-2 ) := 'ADAMS';
11          array( array.Count-1 ) := 'BLAKE';
12          array( array.Count ) := 'WARD';
13 
14          --// remove duplicates
15          ArrayLib.RemoveDuplicates( array );
16 
17          for i in 1..array.Count loop
18                  W( i||' '||array(i) );
19          end loop;
20  end;
21  /
1 ADAMS
2 ALLEN
3 BLAKE
4 CLARK
5 FORD
6 JAMES
7 JONES
8 KING
9 MARTIN
10 MILLER
11 SCOTT
12 SMITH
13 TURNER
14 WARD
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • Get duplicate from collection

    Hi All,
    I've made one method that pulling out duplicate objects from Vector.
    But really I don't like this way; looping for(int i=0; i<column.size(); i++) because the vector size is very big and it makes bad performance.
    Can anybody give me some better idea?
    public Set getDuplicate(Vector column)
         Set unique = new HashSet();
         Set dupResult = new HashSet();
         Object obj;
         for(int i=0; i<column.size(); i++)
              obj = column.get(i);
              if(unique.contains(obj))
                   if(!dupResult.contains(obj))
                        dupResult.add(obj);
              }else
                   unique.add(obj);
         return dupResult;
    }

    This should give better performance. I am not sure how to do it
    without the for loop though.
    public Set getDuplicate(Vector column)
      Set unique = new HashSet();
      Set dupResult = new HashSet();
      Object obj;
      for(int i=0; i<column.size(); i++)
        obj = column.get(i);
        if (unique.add(obj) == false) {
          dupResult.add(obj);
      return dupResult;
    }

  • ICal Duplicate Events After Upgrading to Snow Leopard

    After upgrading to Snow Leopard, I noticed almost all my Events were duplicated. The Duplicates were collected from all calendars and are in one of the Calendars (Paul Events). Strangely a new Calendar (Paul Events 2) was created, but deleting this Calendar did not help. Additionally a previously deleted Calendar from months ago was re installed.
    I have a MobileMe account that syncs automatically.
    Did this happen to anyone else. I am still developing a solution to get rid of the duplicate events, but don't have one yet.

    A lot of Duplicate Events, too.
    After the Snow Leopard upgrade, performed 10/19/09, and the immediate update to OSX 10.6.1, I wanted to sync my iPod Touch 2G.
    I was notified I had 67 iCal events to add, and 18 more modified events (85 total -- (a lot of birthdays). All were duplicates. I didn't sync. Is there any way to delete them?
    Also, over the past 18 months of MBP ownership, my alarms for each event have increased to about 8 (they sound once, but I have to clear each of them on my computer screen), And my Contact notes, have doubled+ (as if Copy + Paste were used), with many spaces, and some of the information lost.
    I was hoping for a Contacts & Calendar that would match the stability of my retired Windows Mobile Dell Axim X50v, before it took a virus, spread it to my Gateway desktop, completely destroying it (the desktop is NO MORE (couldn't be fixed) and I've retired the Axim).
    What is the solution?

  • Contacts, AddressBookSourceSync, etc., hogging processor

    I'm on a clean install of Mavericks on an early 2009 8-core Mac pro.
    1. After the machine is up for a while, it becomes unresponsive, and Activity Monitor typically shows AddressBookSourceSync as the culprit, hogging 100% of the CPU.
    2. Console shows many icbaccountsd events every minute. Those messages state:
    1/13/14 1:02:32.279 pm icbaccountsd[422]: -[ICBLocalDictionary discoverLocalIAAccounts]: Unknown high level account: com.apple.account.addressbook -
    1/13/14 1:02:32.280 pm icbaccountsd[422]: -[ICBLocalDictionary discoverLocalIAAccounts]: Unknown high level account: com.apple.account.google -
    1/13/14 1:02:32.280 pm icbaccountsd[422]: -[ICBLocalDictionary discoverLocalIAAccounts]: Unknown high level account: com.apple.account.addressbook -
    1/13/14 1:02:32.289 pm icbaccountsd[422]: -[ICBSyncOperation mergeLocalChanges:]: Got the following deleted accounts: { }
    1/13/14 1:02:32.289 pm icbaccountsd[422]: -[ICBSyncOperation mergeLocalChanges:]: Looking for UUID: (null) from remote key:
    1/13/14 1:02:32.289 pm icbaccountsd[422]: -[ICBSyncOperation mergeLocalChanges:]: Account not found during local discovery, however was not found in list of deleted accounts, will not delete:
    1/13/14 1:02:32.289 pm icbaccountsd[422]: -[ICBSyncOperation mergeLocalChanges:]: Got the following deleted accounts: { }
    1/13/14 1:02:32.289 pm icbaccountsd[422]: -[ICBSyncOperation mergeLocalChanges:]: Looking for UUID: (null) from remote key:
    1/13/14 1:02:32.289 pm icbaccountsd[422]: -[ICBSyncOperation mergeLocalChanges:]: Account not found during local discovery, however was not found in list of deleted accounts, will not delete:
    (Bolding is mine. That item seems telling. And I've removed numeric strings that may be personally indentifiable; I'm not sure.)
    The last 4 items always repeat another 10 times (for a total of 12 times), and then the process stops briefly. Then, 3-5 minutes later, the entire cycle starts all over again.
    3. In Preferences > Internet Accounts, there are a few accounts that I'm unable to delete. I have 3 active iCloud email addresses and 1 inactive gMail address. The primary iCloud address of course has all of the typical items checked -- mail, contacts, calendars, etc., etc. I noticed that the two, secondary addresses also had contacts and notes selected -- but I don't need either of those addresses to sync contacts or notes. So, I've attempted to untick those checkboxes, but generally, whenever I do, the boxes recheck themselves automatically after a minute or so.
    There are also separate Contacts entries, at the bottom of the list, bearing the names of the secondary email addresses. I've attempted to delete those, but they always come back automatically.
    With that in mind, I logged into those accounts in iCloud.com (on the web), and I discovered that each address had a few contacts in its own address book. So, in Contacts.app (which syncs with my primary iCloud account), I exported vcards for those contacts, just in case, then at iCloud.com, I deleted those entries from the secondary accounts' Address Books. Those items remained in the primary address' Address Book, and I have no idea why those contacts ever got assigned to the secondary addresses. But now, those Address Books are absolutely empty. I was hoping that after doing so, I could delete those entries in Preferences > Internet Accounts, but even though those address books are now empty, the deleted entries always reappear after a minute or two.
    4. Another thread brought to my attention the folder ~/Library/Application Support/AddressBook/Sources. That person had similar, but not identical, problems, and he found that on his computer, this folder had a few hundred folders, each containing a Configuration.plist file that pertained to one of his email addresses. He was able to solve his problem (duplicate address collections in Contacts.app) by deleting all of the folders with plists that pointed to the problem address. When I viewed this folder on my Mac, I found it contained 13,800 such folders.
    But on my Mac, the plot thickens, because in my Sources folder, a new plist folder is created and added to the folder every 20-25 seconds. So the Sources folder gains 2-3 new items every minute. (Hence, the 13,800 folders previously mentioned.) I have not been able to determine what function is propogating the folders.
    5. Following the advice on another thread, I tried:
    • Quitting Contacts.app
    • Force-quitting AddressBookSourceSync
    • Deleting the reappearing items in Internet Accounts, and
    • Deleting com.apple.internetaccounts.plist -- then
    • Quickly restarting the Mac.
    But to no avail.
    This is a clean install, so, I'm stumped. Obviously I signed in to my existing iCloud accounts, but I did not copy over any preference files for address book, etc., from the previous hard drive's backup in an attempt to avoid copying over any gremlins from the last hard drive. But for the record, I never had this problem in Mountain Lion. So, this is something that has arisen as a result of migrating to Mavericks. (No, I did not use Migration Assistant)  :-)
    If anyone has any suggestions, they'd be most welcome.
    Thanks.

    I was having the "ICBSyncOperation mergeLocalChanges Account not found during local discovery" error repeatedly in the Console after adding and deleting some email accounts.  This support article fixed my problem <OS X Mavericks v10.9.1: Repeated prompts to unlock "Local Items" keychain>.

  • Site Replication

    I have a SharePoint 2010 production farm with a web application ‘A’ that I would like to replicate twice in a development farm. The restore and PowerShell Mount went fine for the first development site then I used the following PowerShell to mount the DB
    for the second development site, which went fine and PowerShell returned the new GUID for the DB but when I browsed to the site I get an error
    HTTP/1.1 200 OK Server: Microsoft-IIS/7.5 Date: Mon, 11 Aug 2014 21:00:33 GMT Connection: close. Any help will be appreciated
    PS C:\Users\SP2010xxxxxx> Mount-SPContentDatabase "WSS-Content-Portal-xxxx" -AssignNewDatabaseID -DatabaseServer "XXX2010DB1DEV" -WebApplication http://vsp2010XXX:1234

    Again, doesn't matter. The Site Collections contained within those databases have the same GUID, and Site Collections are recorded in the Configuration database, farm-wide.
    You need to use Backup-SPSite and Restore-SPSite in order to duplicate Site Collections within the same farm on different Web Applications.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to display search results in content area

    Hi
                 How can I display search results in the content area as seen in sdn.
    Thanks in advance.

    Hi,
    http://help.sap.com/saphelp_nw70/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm you find the relevant guidelines.
    You can filter the PCD object setting the Search Layout Set of your Searc Iview.
    In System Admin > System Configuration > Content Management > User Interface > Settings > Layout Set and duplicate the "SearchResultLayoutSet" layout set.
    Then you have to duplicate its Collection Renderer "StandardSearchResultRenderer".
    In its property "Resource Types to be Filtered" set as value "-http://sap.com/xmlns/pcd/app/iview".
    Then assign the new Collection Renderer to the new Layout Set and that's it!
    Now if yuor Search Iview uses this new Layout Set, when you search a PCD object the iviews will not be shown!
    (or)
    In the entry "Predefined Properties" of the search options set, you will need to enter "resourcetype(value=http://sap.com/xmlns/pcd/app/page/default)" if you want the search to be limited to resources defined as pages. Leave out /default if you dont want the end user to be able to change the filter.
    If you want the parameter reflected in the URL, you can find information about how to do it here: /message/280371#280371 [original link is broken]
    Check and try either ways.
    Regards,
    Ponneswari A.

  • Command Groups issue

    Hi all,
    I have the following problem with Command Groups.
    When I create a new Command Group or duplicatie an existing Command group I the iView I can see only the Default Command Group instead of the commands which I have assign. Even when I create a command group without any commands or when I duplicate the AppEmpty command group I see the default commands. When I change the commands of an existing command group, there is no change. When I use the existing command group there is no problem, but when I duplicate it, there are the default commands instead of the commands of the duplicated command group.
    Another question. By searching, the option Similar Documents doesn't use the same collection renderer as the SearchResultLayoutSet. Can you tell me, which is the Collection Renderer of the Similar Documents.
    Thanks in advance for any help.
    Best regards,
    Zlatina

    Hi
    you are doing perfectly fine what you need to do is duplicate the collection renderer and attach the commandgroup and then duplicate the layoutset and attach this collection renderer to it and apply this layoutset to iview by chaging the name of it in default layout.Hope this helps.allocate points just go through this soln i have posted earlier
    1.Identify the iviews which are used for xml forms
    here NEWS AUTHORING AND NEWS BROWSING.
    2.IN THIS REGARD U HAVE DISPLAYED LINKS OF REPOSITORY AT THE TOP OF AUTHORING IVIEWS WHICH CAN BE MASKED BY EDITING RENDERCONFIG.PROPERTIES FILE STORED AT ETC -XML FORMS FOLDER YOU CAN DIPLAY THE PROJECT IN THE IVIEW THAT U HAVE CREATED.
    3.GENERALLY LINKS WHICH ARE DISPLAYED AT THE BOTTOM OF THE IVIEW ARE CONTROLLED BY COMMAND GROUPS BY NAVIGATING
    You are here:
    Configuration
    Content Management
    User Interface
    Commands
    SELECT NEWS DISPLAY GROUP FOR NEWS BROWSER AND NEWS GROUP FOR NEWS AUTHORING CREATE DUPLICATE OF IT AND EDIT THE TAB COMMAND LIST FOR THE LINKS TO BE DISPLAYED AND NAME IT AS YOUR OWN COMMAND GROUP.
    4> NOW NAVIGATE TO
    Configuration
    Content Management
    User Interface
    Settings
    COLLECTION RENDERRER SETTINGS
    COLLECTION GRID RENDERRER SETTINGS
    DUPLICATE THE SETTINGS FOR NEWS COLLECTION RENDERRER AND NEWS DISPLAY COLLECTION RENDERRER AND ADD THE COMMAND GROUP U HAVE CREATED IN PREVIOUS STEP TO MASS COMMAND GROUP AND COLLECTION COMMAND GROUP PROPERTY FIELD
    5>U NOW HAVE TO CREATE THE LAYOUT THAT MEANS U ARE GOING TO APPLY A LAYOUT WHICH IS NOT DEFAULT BY NAVIGATING TO
    You are here:
    Configuration
    Content Management
    User Interface
    Settings
    LAYOUTSET
    DUPLICATE THE LAYOUT FROM THE AVAILABLE ONES FOR NEWS BROWSER AND NEWS EXPLORER NAME IT AND STORE IT IN A FILE
    NOW CHECK THE BOX SHOWING UR COLLECTION RENDERER IN PROPERTY WINDOW AND UNCHECK THE DEFAULT ONE SAVE IT
    5> GET IN PORTAL CONTENT DIRECTORY AND IN PROPERTY WINDOW EDIT THE LAYOUTSET OF NEWS AUTHORING AND NEWS BROWSER IVIEW ADD THE LAYOUTSET U HAVE CREATED JUST TYPE THE NAME OF IT . SAVE AND HAVE PREVIEW.
    <b>With regards
    subrato kundu
    IBM
    SAP Enterprise Portal technology consultant</b>

  • IPhoto library delete and use Lightroom

    Dear all,
    I've been searching for an answer to my specific issue but no luck yet.
    I understand iPhoto and the duplicates it collects in the iPhoto 'file'. I read a few of T Devlin's posts!
    However after some deliberation, I've decided to move to Lightroom instead of using iPhoto.
    I don't mind manually sorting/collecting my photos in my own folders and not using iPhoto to help me manage them
    Therefore, I've been wanting to delete that iPhoto duplicates 'file' but wondering if it is safe to do so without messing up my originals in their folders.
    I intend to uncheck 'copy items in photo library...' option but wondering if that auto deletes the massive iPhoto file, or do I have to them go in and delete it manually?
    Also, I want to reinstall my OSX onto an SSD and then use my 1TB as an extra drive. I'm guessing if I, at that point, re-check that option, it auto backs up the photos all over again?
    Thanks for your advice

    1 -  You do not understand how iPhoto works - it never duplicates photos (it does have different versions - no duplicates)
    2 - you should not ever import any photo into iPhoto with the Copy imported items to iPhoto unchecked - it is a recipe for many future problems
    3 - to move to any other program including LR simply select your photos and export them - see Exporting From iPhoto - for details
    4 - after your photos are safely out of iPhoto trash the iPhoto library
    5 - if you do not use iPhoto you will never create another library - and if yo do use it you do not want a referenced library - see iPhoto and File Management
    6 - you should not use both iPhoto and LR - they do the same thing in different ways and can not work together in any way
    LN

  • Am I missing a

    I bought a Nomad JukeBox Zen Xtra and it came with just one CD. I've loaded all the software and finally got the pc to recognize the Nomad. (Took about 4 hours to accomplish that)?Now I cannot find a way to sync the Nomad and the computer's music files. Is there another CD that I am suppose to load that has? the sync program on it's?If not, what program do I use to sync the two devices?

    It sounds like you have installed Nomad Explorer and it sometimes works. I had similar functionality problems with Nomad Explorer and I eventually removed it from my computer because I realized I didn't need to carry other files around with me, just music. If you have an Internet connection, go to the Creative site and find the downloadable upgrades for the Zen Xtra; depending on your computer up-to-date drivers and software is a must. One note on using your Xtra with your computer: always have the Xtra plugged into its AC adapter, no matter what you are doing. I find the Creative Mediasource software fills all my needs for organizing a music collection on your PC or on your Xtra. The word 'sync' you see all over the place refers to a duplicate music collection that users create on their PCs and then 'sync' to their players... in other words, two duplicate collections. Most users edit their collections (trim excessi'vely long filenames, edit and change 'tags' that cause your display to show the correct musical information) on their PCs and then transfer the new information to their players. WARNING: many users have described fatal problems after attempting to load up the latest 'PlaysForSure' software to their players. At this time I can't recommend this software type... leave it alone. My PC currently has the latest driver for windows, the latest driver upgrade SPECIFICALLY for the Zen Xtra, and the latest version of Creative Mediasource Organizer. It all works, and it should take considerably less than 4 hours to load. If you are using a low-bandwidth Internet connection, I recommend downloading ALL the required software from the site first, then load it from your computer. If you are new to MP3 players AND a relati've novice at programming home computers you are at a double disadvantage. Find someone who can?assist you until you?gain confidence with your devices. Happy Hunting.

  • Is it possible to have a non-Creative Cloud client review and comment on a shared album?

    So far I have found that only those with an Adobe login can comment.

    That's right. This area is pretty new and has changed quickly, so I wouldn't be surprised if it changes to allow other ways of authenticating comments.
    For now, you can always set up a dummy account and tell people to log in using that user name and password. If you need more than one person to view a set of images, just duplicate the collection and sync it too (this doesn't mean extra uploading). So, for example, client John might log in using mydummyadobeID and select from the Shoot-John collection, and client David would use the same ID to view the Shoot-David collection.

  • How to disable category link in content area

    Hi,
    I have a lots of categories in a content area. As u all know, a link appears for all categories in the category header.
    Clicking that will take you to that particular category.
    I do not want to have that link. I have tried what was mentioned in earlier question to disable portlet header link.
    <a font color=white></font>
    Bue that's not working for category links.
    Please help.
    Murthy

    Hi,
    http://help.sap.com/saphelp_nw70/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm you find the relevant guidelines.
    You can filter the PCD object setting the Search Layout Set of your Searc Iview.
    In System Admin > System Configuration > Content Management > User Interface > Settings > Layout Set and duplicate the "SearchResultLayoutSet" layout set.
    Then you have to duplicate its Collection Renderer "StandardSearchResultRenderer".
    In its property "Resource Types to be Filtered" set as value "-http://sap.com/xmlns/pcd/app/iview".
    Then assign the new Collection Renderer to the new Layout Set and that's it!
    Now if yuor Search Iview uses this new Layout Set, when you search a PCD object the iviews will not be shown!
    (or)
    In the entry "Predefined Properties" of the search options set, you will need to enter "resourcetype(value=http://sap.com/xmlns/pcd/app/page/default)" if you want the search to be limited to resources defined as pages. Leave out /default if you dont want the end user to be able to change the filter.
    If you want the parameter reflected in the URL, you can find information about how to do it here: /message/280371#280371 [original link is broken]
    Check and try either ways.
    Regards,
    Ponneswari A.

  • Override argument in compareTo()

    Hi,
    When we override equals() method , you must take an argument of type "Object" but when we need to override compareTo() we should take an argument of the type you are searching. why not we pass "Object" type argument in compareTo() ??
    for example , if we want to sort of type Person class which implement comparable interface , we use signature like compareTo(Person personObject) not compareTo(Object) ... why ??
    Thanks in Advance ,
    Rishi

    (admittedly, Object<T extends Object> would be a confusing definition for the top superclass which Java newbie generally discover on day 1).Wouldn't it just be Object<T>?Yes, sorry.
    It is a pity that equals() can't be generified. Maybe it's time for Java to consider an Equivalent<T> interface and retro-fit it to the collections framework (which is, after all where we use it most); but maybe it's too late now.Probably too late. The operative method of this interface couldn't be named equals (with what I understand of generics' erasure, this would conflict with all existing code where an equals(Object) already exists). Even if it were possible to solve the inconsistency with a special-purpose JLS rule, which I doubt, there would be an ambiguity in existing code that calls equals(Object) .
    Assuming the method would have a different name, again upward compatibility would prevent the existing Collection classes from disregarding equals(Object), so the JDK team would need to duplicate all collection classes, one version in terms of equals(Object), the other version in terms of the new method. I don't think that would simplify things overall...

  • KM discussion iview customization

    Hi All,
    I am trying to customize the default KM Discussion iView. I was not able to figure out a way to remove the buttons "New Discussion Topic", "Delete All Topics". How to achieve this?
    Thanks in advance.
    Points will be awarded for helpful answers.
    Regards,
    Yoga

    Hi Yogalakshmi
    As Jon has mentioned you can modify the Commandgroup/or create your own command group
    First you create a custom Layoutset
    Duplicate DiscussionGroups  Layoutset
    Then Duplicate DiscussionGroupCollectionCommandGroup
    From the List of coomands, remove those you don't want.
    Also duplicate the collection renderer which refers to the "DiscussionGroupCollectionCommandGroup" and refer your Command group in the collection renderer
    Hope this will help you
    Revert if you have more queries
    Best Regards
    Aparnna

  • Duplicate photos in "Collections" after installing IOS 7

    After installing ios7 yesterday, each automatically newly created photo "collection" contains some duplicate photos. How do I delete dups without deleting the originals that I of course want to keep? I tried to delete one as a test, and got a message saying it would be removed from all other photos links. This scared me...
    Thanks for your help,
    Lisa

    I noticed this too. I think one photo is being read from iCloud because it can't be deleted - or maybe it's a photo that was synced from my Mac. Haven't found a solution as to why both are displayed or how to fix it.

  • Why do my photos duplicate in a Collection when I export them

    I exported some of the photos in my collection and now I see the same picture twice when I click on the collection. I you control-click the photos in Lightroom and select Show in Finder in the por-up menu, it will show the same file for both the pictures. I have tried every option and the duplicates still show up.

    Seán McCormack wrote:
    I suspect it's the latter option in Beat's list: Add to Catalog was ticked when you exported.
    That was also my first suspicion, but then, by doing so:
    The catalog should show a JPG right next to a RAW, not 2 RAW images of the same original
    The images in the catalog should point to different folders, one (the RAW) to the original, the other one (the JPG) to the export folder, in this case the new folder on the desktop.
    So I think it must be something else ...
    Beat Gossweiler
    Switzerland

Maybe you are looking for