Ok Why Does Boolean NOT implement Comparable

Ok.. im looking for a logical reason to why Boolean does NOT implement Comparable?
Every other wrapper does. ( Integer, Double ect.. ) Just not Boolean..
anyone got any logical guesses as to Why?
( just for context here is how i came upon this.. )
I have a quicksort algorythm that reads in an arraylist and does some manipulation of it. All that is demands is that the objects in the list be comparable. This algorythm has worked beautifully (and fast) for serveral months.. till someone put a Boolean in the list.. doh!
Thanks,
JMG

Using the collections.sort() would mean that each object would have to implement comparable anyways. It also means that these objects would only be sortable by one set of tests. I wish to sort my objects by any of their properties. Hence now my properties must implement comparable. ( given that this app usings mostly int, double and String its not a big deal) What surprised me was the Double did not implement comparable where all other wrappers did.. thats it..
mostly i was just currious as to if there was a larger reason to why it was not implemented other than we just could not decided which should be valued higher :)
JMG

Similar Messages

  • Why does iphoto not copy all photos when transfering

    Hi peeps.
    why does iPhoto not copy all photos from an event when im copy/pasting to an external folder on my mac(for later transfer). All softwares are up to date and ive only just realised it happens, but when i copy all pics in an event then paste in a folder, the pic count is substantially different. for example i select all pictures in an event called 'new1', the count of files is 188. i then copy/ paste to a folder,  select all files and check 'info' and it says 141 files??? 
    all i can see painstakingly going through to compare which images are in each place is that the ones that arent in my new folder , seem to be the ones ive edited in iPhoto??  conincidence? or am I missing something fundamental here?  Ive only just realised this is occuring. The trouble is, after moving images to folders/hard drives I  subsequently delete them from iphoto to keep my macbook airs HDD with some space.  So basically all of the versions of pictures I want, i.e, the new edited and adjusted versions are no longer! NOT HANDY!
      help please.

    We've seen a few reports of this in the past while and no one is sure of the cause.
    Use the File -> Export command. See this User Tip
    https://discussions.apple.com/docs/DOC-4921
    for details of the options the Export Dialogue offers.
    If you're interested in your Photos then this workflow
    The trouble is, after moving images to folders/hard drives I  subsequently delete them from iphoto to keep my macbook airs HDD with some space.
    means you are losing quality, metadata and the version of control. If you don't want these why use iPhoto at all?
    You could just move the whole Library to an external:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Why does is not show the radio buttons

    I want to display the buttons in a row then radio button in a row under the button and then log scroll pane under the radio buttons. This is my code:
            //Add the buttons and the log to this panel.
            add(buttonPanel, BorderLayout.PAGE_START);
            add(radioPanel, BorderLayout.CENTER);
            add(logScrollPane, BorderLayout.CENTER);When i run it it display the buttons and the logsrollpane. Why does it not display the radio buttons?

    Thanks guys.
    This is my problem. We have a big system that produce lots of log files and the software testers have to manually have to go through the logs file and look for a certain XML tags in the log file.
    What I want to do is help the software testers my developing a small tool that will allow them to open a log file and then click on a radio button corresponding to a xml tags that they are looking for and automatically highlight the tags in the file in yellow color .
    I am not sure how feasible this is and I am stuck.
    This is what I have done so far.
    Can you please guys help me go forward.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo extends JPanel
                                 implements ActionListener {
        static private final String newline = "\n";
        JButton openButton;
        JButton clearButton;
        JTextArea log;
        JFileChooser fc;
        // Radio Buttons
        static String em01 = "EM01";
        static String em07 = "EM07";
        /*static String dogString = "Dog";
        static String rabbitString = "Rabbit";
        static String pigString = "Pig";*/
        public FileChooserDemo() {
            super(new BorderLayout());
            //Create the radio buttons.
            JRadioButton em01Button = new JRadioButton(em01);
            em01Button.setMnemonic(KeyEvent.VK_B);
            em01Button.setActionCommand(em01);
            em01Button.setSelected(true);
            JRadioButton em07Button = new JRadioButton(em07);
            em07Button.setMnemonic(KeyEvent.VK_C);
            em07Button.setActionCommand(em07);
            //Group the radio buttons.
            ButtonGroup group = new ButtonGroup();
            group.add(em01Button);
            group.add(em07Button);
            //Register a listener for the radio buttons.
            em01Button.addActionListener(this);
            em07Button.addActionListener(this);
            //Put the radio buttons in a column in a panel.
            JPanel radioPanel = new JPanel(new GridLayout(0, 1));
            radioPanel.add(em01Button);
            radioPanel.add(em07Button);       
            //Create the log first, because the action listeners
            //need to refer to it.
            log = new JTextArea(40,60);
            log.setMargin(new Insets(5,5,5,5));
            log.setEditable(false);
            JScrollPane logScrollPane = new JScrollPane(log);
            //Create a file chooser
            fc = new JFileChooser();
            //Uncomment one of the following lines to try a different
            //file selection mode.  The first allows just directories
            //to be selected (and, at least in the Java look and feel,
            //shown).  The second allows both files and directories
            //to be selected.  If you leave these lines commented out,
            //then the default mode (FILES_ONLY) will be used.
            //fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            //fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
            //Create the open button.  We use the image from the JLF
            //Graphics Repository (but we extracted it from the jar).
            openButton = new JButton("Open File");
            openButton.addActionListener(this);
            //Create the save button.  We use the image from the JLF
            //Graphics Repository (but we extracted it from the jar).
            clearButton = new JButton("Clear Text Area");
            clearButton.addActionListener(this);
            //For layout purposes, put the buttons in a separate panel
            JPanel buttonPanel = new JPanel(); //use FlowLayout
            buttonPanel.add(openButton);
            buttonPanel.add(clearButton);
            //Add the buttons and the log to this panel.
            add(buttonPanel, BorderLayout.PAGE_START);
            add(radioPanel, BorderLayout.LINE_START);
            add(logScrollPane, BorderLayout.CENTER);
        public void actionPerformed(ActionEvent e) {
            //Handle open button action.
            if (e.getSource() == openButton) {
                int returnVal = fc.showOpenDialog(FileChooserDemo.this);
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                     log.setText("");
                    File file = fc.getSelectedFile();
                    try{
                         BufferedReader in = new BufferedReader(new FileReader(file));
                             String data;
                             while ((data = in.readLine()) != null) {
                                  log.append(data + newline);
                    }catch(IOException ioe){
                log.setCaretPosition(log.getDocument().getLength());
            //Handle save button action.
            }else if (e.getSource() == clearButton) {
                  log.setText("");
         * Create the GUI and show it.  For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("PROGRESS Message Viewer");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new FileChooserDemo();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

  • Why does Mail not support read receipts?

    I find it hard to believe that there is a single email application that doesn't support read receipts. For me it is a fairly basic feature I would expect any decent Mail application to have.
    I am currently in the process of writing an email to a company and I want to make sure they get it - a read receipt is how I want to verify that they've had it. Why does Mail not support this?
    If I am going to have to accept that Mail is not the first class application Apple keeps parading around - is there an alternative that offers this and other features I would expect to find in Microsoft Outlook (minus the calendar etc...)?

    Outlook uses a Microsoft-proprietary system for "read receipts", so there may be no way Apple could implement it, or there may be licensing fees involved, or Apple may just not feel that it's worth spending the money to implement. Outlook which is designed to work primarily with an Exchange server, so it's in Microsoft's interest to support Exchange features (note that even Microsoft in their own Mac app do not support all the features theydo on Windows).
    You can express your interest in this feature to Apple via their feedback pages, if you wish:
    http://www.apple.com/feedback/macosx.html
    but support for return receipts in any system other than Exchange is very unlikely, since as Matt said it is not part of the Internet email specification and hence not widely supported at all.
    Regards.

  • Why does abode not work on my galaxy tab2

    Why does abode not work on my galaxy tab 2?

    The games dont load they just say I need to update to the latest version or say that it is not compaterble with it.

  • Why does sound not work on my Mac Air?

    Why does sound not work on my Mac Air --all setting seem okay. OSX 10.9.2 operating systyem.

    Open System Preferences > Sound > Output
    Make sure the coorect output devices is selected and the Mute button is not checked.

  • Why does 'User not registered for online use' show up when I try to import a cd into itunes. None of the cd info shows up either

    Why does 'User not registered for online use' show up when I try to import a cd into itunes? None of the cd info shows up either.

    Well, the format I upload from the camera is "video clip" or "video for Windows"...sometimes I've converted them to avi format, too. But as I said, it never even lets me get that far...I never get to even select a clip. As soon as I tell the program to "import/clip" it freezes up before I can even go to the folder that the clips are in. It has only begun to do this recently, and I'd never had any problems like this before. Last night I tried it again, and I clicked "open composition", and it froze when I did that too.
    I'm not sure how much more specific I can be about the details of the clips, since I'm positive it has nothing to do with the clips themselves...I'm running Windows XP, though...Home Edition Service Pack 2, Pentium 4 CPU 2.80GHz, with 504 MB of RAM. I have had the automatic updates turned on since I did my last reformat a couple of weeks ago. Could it have something to do with some kind of an update it may have done?

  • Put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    i just purchased a file that had videos in it. i put them in the itunes library on my pc where i first downloaded them. i was able to transfer them to my other pc, a laptop, through my home network. i am now trying to get them on my mac pro desktop and my ipad2. my mac pro can see the other computers on my home network but i cannot get it to connect to them. i know the operating systems are different but was hoping i could transfer pictures and files from pc to mac this way. haven't been able to get it to work yet. the videos i am trying to get my mac to see came in a folder with both mac and pc versions. i thought if i got the videos i purchased into itunes that i would then be able to get them to my mac pro and my ipad2. i am new to mac/apple and have always been pc-centric so trying to marry it all has been difficult. i speak pc pretty well but am just learning apple. am i trying to do things that are not possible? i sure could use a knowledgable friendly soul to walk me through my issues of having pc and mac on the same network. i have been able to get all computers and ipad to print on my network. thanks.

  • HT204406 I have subscribed to match on iTunes and organized my music on my Mac Book.  Why does it not appear the same way on my iPad

    I would like my music to appear organized in the same way on my iPad as I have done it on my Mac Book.  (and on my iPhone as well)  Since it is in the cloud, why does it not appear the same way in all devices?

    The purpose of iTunes match is to make your music library available to all of your devices anywhere. It will sync Playlists, but no other type of organization you may have made.
    If you're having trouble, be sure you are logged into the same Apple ID on all devices but be sure to read this article and pay special attention to associating your devices with an Apple ID. There are important restrictions you should know about.

  • Why does lion not have front row

    why does lion not have front row
    and what can i do to get it i loved the ease of use

    Front Row is not included or supported in Lion.
    Read here, but proceed at your own risk

  • I just bought more icloud storage, why does it not let me backup my iPhone 5..says i need 1.4 GB of space

    i just bought more icloud storage, why does it not let me backup my iPhone 5..says i need 1.4 GB of space?..I just bought 10 more in icloud.

    I think you are confused. Syncing apps and music to your phone will not get store in the cloud by adding more cloud storage. If you don't have enough space to sync the music and apps, buying cloud storage won't help. If you have a 16GB phone, the phone still only has 16GB for apps and music even if you buy 10 mor GB of cloud storage.

  • Why does TO_CHAR not like me adding a fraction then specifying FF?

    Why does TO_CHAR not like me adding a fraction?
    SQL> SELECT TO_CHAR(TO_TIMESTAMP('1/1/2012', 'DD/MM/YYYY') + .733409047, 'HH24:MI:SS') FROM Dual;
    TO_CHAR(
    17:36:07
    SQL> SELECT TO_CHAR(TO_TIMESTAMP('1/1/2012', 'DD/MM/YYYY') + .733409047, 'HH24:MI:SS.FF') FROM Dual;
    SELECT TO_CHAR(TO_TIMESTAMP('1/1/2012', 'DD/MM/YYYY') + .733409047, 'HH24:MI:SS.FF') FROM Dual
    ERROR at line 1:
    ORA-01821: date format not recognized
    -- NUMTODSINTERVAL() saves the day.
    SQL> SELECT TO_CHAR(TO_TIMESTAMP('1/1/2012', 'DD/MM/YYYY') + NUMTODSINTERVAL(.733409047, 'DAY'), 'HH24:MI:SS.FF') FROM Dual;
    TO_CHAR(TO_TIMESTA
    17:36:06.541660800

    Hi,
    Date arithmetic only works with DATEs.
    If you want to do something similar with TIMESTAMPs, use NUMTODSINTERVAL:
    SELECT  TO_CHAR ( TO_TIMESTAMP ('1/1/2012', 'DD/MM/YYYY') + NUMTODSINTERVAL (.733409047, 'DAY')
              , 'HH24:MI:SS.FF'
    FROM      dual
    ;Here's exactly what's happending:
    When you say "d + n", d is supposed to be either a NUMBER or a DATE. When you pass any other datatype, Oracle tries to convert d to either a NUMBER or a DATE. In this case, d was a TIMESTAMP; Oracle realized that it could convert that TIMESTAMP into a DATE, and did so. The 1st argument to TO_CHAR, therefore, was a DATE, but '.FF' only works with TIMESTAMPs.
    There are a couple of things about how Oracle handles this that I find annoying, but I don't know of any better work-around.
    Edited by: Frank Kulash on Feb 16, 2012 1:39 PM

  • Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    This is a user to user forum.  Apple isn't here and won't answer you.  You need to contact Apple directly.  You can use the Contact button at the bottom of the screen.

  • Why ipad do not implement what a chinese company Ereneben have on their tablet (T7) thin pen that you can write in any application that tablet have

    I had tried the Chinese tablet Ereneben T7, and the features that gives you with the use of a thin pen is like write in a paper, it is really impresive. you can write in emails, office documents, pdf documents, photos, in any aplication that has.
    Why ipad do not implement this technology?

    There are a number of third-party apps that offer handwriting support. If you are asking why Apple has not implemented handwriting as a standard feature of iOS, no one here will know, though clearly avoiding the need for a stylus is a design decision Apple made a long time ago. You can suggest handwriting support as a standard feature to them here, if you wish:
    http://www.apple.com/feedback/ipad.html
    but I doubt that Apple will add it anytime in the near future, so if that is an essential feature for you, another tablet may suit you better.
    Regards.

  • Why does cellular not support phone features?

    iPad Mini with Retina display has a celluar capability. Why does it not support full phones features, doubling as an iPad and phone like the iPhone 5S does?

    And I don't mean to seem rude. I have worked in product development many years with a very large company. I have also challenged engineers and developers to look beyond the basics to deliver something that sets the trend adn differentiates itself from the pack.
    Apple as that trend-setter created awesome products in the form of the iPad Air and the iPad Mini w/ RD. It is extraordinary in the leading technologies they incuded in the  package. It would have been BRILLIANT though, to have converged both as an IPad and a phone. It would have propelled the iPad light years ahead of the competition.

Maybe you are looking for

  • ICal and Calendar sync one week apart for Repeating events

    Hi, First Post here. Look forward to sticking around. I have been reading the forum avidly since I received my iphone 3g on July 11th. So here is the issue: It is in regards to events that I created on my iphone that are scheduled to repeat each week

  • IPod data keeps getting erased

    I manually sync my iPod with my Windows 7 desktop without any issues. I got an iBook G3 running Mac OS X 10.3.9 recently, and sometimes when I connect it, the data is erased and none of the songs will play. They still appear on my iPod and in iTunes

  • Using subsitiutions in the install scripts

    This should be pretty obvious, but I can't find the answer in the documentation. Using Apex 3.1.2, in the Shared Objects, I've created a substitution named "TABLESPACE". The application uses a set of tables, the install should create these tables, an

  • Interactive Report with union all in the query

    I have an interactive report with the following query in the report region: select property,saddr1,upostdate,sotherdate1,journal_control-1000000000,account,sdesc,uref, suserdefined1,trans_notes,samount,detail_notes from journal_entries union all sele

  • Not able to run Oracle Form

    I've connected to the database (Oracle 10g) and I have created a basic form and I also started the OC4J instance. When I try to run the form by clicking Run Form, it opens a webpage, but closes immediately. I've saved the form (test.fmb) in a folder