Whats the difference between comparable and comparator?

whats the difference between comparable and comparator?
when must i use comparable, and when must i use comparator?

whats the difference between comparable and
comparator?Comparable is from the java.lang package, Comparator from java.util.
when must i use comparable, and when must i use
comparator?Here's a tutorial on both:
http://java.sun.com/docs/books/tutorial/collections/interfaces/order.html

Similar Messages

  • Whats the difference between list and lov ?

    Whats the difference between list and lov ?
    i can do the same things with a list what an lov can do .
    infact a list is more better. cause the list doesnt hold/show a range of values, and only has the items value iteself.
    while the lov can get all the values of items depending on the query.
    like
    select ename, job, sal from emp
    will show all the three items values in lov?

    Also, if you're looking in the US store, the prices are:
    - Airport Express (small, no ac) $99 - Has audio out for speaker connection using Airplay. Can share a USB printer only.
    - Airport Extreme (larger, ac) $199 - No audio out, can share a USB printer or hard drive.
    - Time Capsules (2TB, 3TB at $299, $399) - have ac wireless and a backup hard drive for Time Machine which the other Airports do not have.
    Matt

  • Whats the difference between Fatal1ty and Fatal1ty USB heads

    Whats the difference between Fatal1ty and Fatal1ty USB headset? What is the $30 price difference for other than a USB connection?
    Also, what is the advantage to using the USB port?
    Still trying to decide on which headset to buy. I will be using these mainly for gaming and some music. Although i'm not real picky when it comes to music quality. Even considered the HS-1200 wireless. Which headset of these 3 has the best sound quality and better quality?
    Message Edited by iowabucks on 10-20-2008 07:54 AM
    Message Edited by iowabucks on 10-20-2008 08:10 AM

    Any USB sound related item is going to use system resources instead of the non usb version. The non usb version uses the resources of the sound card and not system resources. So you should get cleaner sound with the non usb version.
    But, be aware creatives tech support is not the best in the world. Keep that in mind when buying a product from them.

  • Whats the difference  between Authentication and Login check up ?

    whats the difference between Authentication and Login check up ?

    Authentification is a more generic term. It's generally applicable to any situation where you check that information comes from where it claims to come from.
    Login is just one form of authentification.

  • Whats the difference between oracle9i and oracle10g

    whats the difference between oracle9i and oracle10g?

    794244 wrote:
    whats the difference between oracle9i and oracle10g?About 12...
    SQL> select utl_match.jaro_winkler_similarity('oracle9i','oracle9i') as sameness from dual;
      SAMENESS
           100
    SQL> select utl_match.jaro_winkler_similarity('oracle9i','oracle10g') as sameness from dual;
      SAMENESS
            88
    SQL>

  • Whats the difference between ALL and FIRST  in Multi Inserting

    SQL> Drop Table Sales;
    Table dropped.
    SQL> Drop Table Accounts;
    Table dropped.
    SQL> Drop Table Research;
    Table dropped.
    SQL> Create Table Sales As Select * From Emp;
    Table created.
    SQL> Create Table Accounts As Select * From Emp;
    Table created.
    SQL> Create Table Research As Select * From Emp;
    Table created.
    SQL> Truncate Table Sales;
    Table truncated.
    SQL> Truncate Table Accounts;
    Table truncated.
    SQL> Truncate Table Research;
    Table truncated.
    SQL> Select * From Sales;
    no rows selected
    SQL> Select * From Accounts;
    no rows selected
    SQL> Select * From Research;
    no rows selected
    SQL> Insert All
      2  When Deptno=10 Then
      3  Into Sales (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      4  When Deptno=20 Then
      5  Into Accounts (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      6  When Deptno=30 Then
      7  Into Research (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      8  Select * From Emp
      9  .
    SQL> /
    16 rows created.
    SQL> Select * From Sales;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7782 CLARK      MANAGER        7839 09-JUN-81       100                  10
         7839 KING       PRESIDENT           17-NOV-81       100                  10
         7934 MILLER     CLERK          7782 23-JAN-82       100                  10
         7999 ABCDEFGH   JOB            7839 09-FEB-06       100         0        10
    4 rows selected.
    SQL> Select * From Accounts;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7901 SMITH      CLERK          7902 17-DEC-80       100                  20
         7566 JONES      MANAGER        7839 02-APR-81       100                  20
         7788 SCOTT      ANALYST        7566 19-APR-87       100                  20
         7876 ADAMS      CLERK          7788 23-MAY-87       100                  20
         7902 FORD       ANALYST        7566 03-DEC-81       100                  20
          123                                                                     20
    6 rows selected.
    SQL> Select * From Research;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7499 ALLEN      SALESMAN       7698 20-FEB-81       100       300        30
         7521 WARD       SALESMAN       7698 22-FEB-81       100       500        30
         7654 MARTIN     SALESMAN       7698 28-SEP-81       100      1400        30
         7698 BLAKE      MANAGER        7839 01-MAY-81       100                  30
         7844 TURNER     SALESMAN       7698 08-SEP-81       100         0        30
         7900 JAMES      MANAGER        7698 03-DEC-81       100                  30
    6 rows selected.
    SQL> Truncate Table Sales;
    Table truncated.
    SQL> Truncate Table Accounts;
    Table truncated.
    SQL> Truncate Table Research;
    Table truncated.
    SQL> Insert First
      2  When Deptno=10 Then
      3  Into Sales (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      4  When Deptno=20 Then
      5  Into Accounts (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      6  When Deptno=30 Then
      7  Into Research (Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,DeptNo)
      8  Select * From Emp
      9  /
    16 rows created.
    SQL> Select * From Sales;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7782 CLARK      MANAGER        7839 09-JUN-81       100                  10
         7839 KING       PRESIDENT           17-NOV-81       100                  10
         7934 MILLER     CLERK          7782 23-JAN-82       100                  10
         7999 ABCDEFGH   JOB            7839 09-FEB-06       100         0        10
    4 rows selected.
    SQL> Select * From Accounts;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7901 SMITH      CLERK          7902 17-DEC-80       100                  20
         7566 JONES      MANAGER        7839 02-APR-81       100                  20
         7788 SCOTT      ANALYST        7566 19-APR-87       100                  20
         7876 ADAMS      CLERK          7788 23-MAY-87       100                  20
         7902 FORD       ANALYST        7566 03-DEC-81       100                  20
          123                                                                     20
    6 rows selected.
    SQL> Select * From Research;
        EMPNO ENAME      JOB             MGR HIREDATE        SAL      COMM    DEPTNO
         7499 ALLEN      SALESMAN       7698 20-FEB-81       100       300        30
         7521 WARD       SALESMAN       7698 22-FEB-81       100       500        30
         7654 MARTIN     SALESMAN       7698 28-SEP-81       100      1400        30
         7698 BLAKE      MANAGER        7839 01-MAY-81       100                  30
         7844 TURNER     SALESMAN       7698 08-SEP-81       100         0        30
         7900 JAMES      MANAGER        7698 03-DEC-81       100                  30
    6 rows selected.Both inserting insert the same records then whats the difference between ALL and FIRST clause in multi insert DML
    Khurram Siddiqui
    [email protected]

    Hello
    From the docs:
    ALL
    If you specify ALL, then Oracle evaluates each WHEN clause regardless of the results of the evaluation of any other WHEN clause. For each WHEN clause whose condition evaluates to true, Oracle executes the corresponding INTO clause list.
    FIRST
    If you specify FIRST, then Oracle evaluates each WHEN clause in the order in which it appears in the statement. For the first WHEN clause that evaluates to true, Oracle executes the corresponding INTO clause and skips subsequent WHEN clauses for the given row.
    ELSE clause
    For a given row, if no WHEN clause evaluates to true:
    * If you have specified an ELSE clause, then Oracle executes the INTO clause list associated with the ELSE clause.
    * If you did not specify an else clause, then Oracle takes no action for that row.
    See Also:
    "Multitable Inserts: Examples"
    Restrictions on Multitable Inserts
    * You can perform multitable inserts only on tables, not on views or materialized views.
    * You cannot perform a multitable insert into a remote table.
    * You cannot specify a table collection expression when performing a multitable insert.
    * In a multitable insert, all of the insert_into_clauses cannot combine to specify more than 999 target columns.
    * Multitable inserts are not parallelized in a Real Application Clusters environment, or if any target table is index organized, or if any target table has a bitmap index defined on it.
    * Plan stability is not supported for multitable insert statements.
    * The subquery of the multitable insert statement cannot use a sequence.
    So given this the following example shows the difference:
    SQL> CREATE TABLE dt_test_insert_base as select rownum id from dba_objects where rownum <=20
      2  /
    Table created.
    SQL> CREATE TABLE dt_test_insert_1 (id number)
      2  /
    Table created.
    SQL> CREATE TABLE dt_test_insert_2 (id number)
      2  /
    Table created.
    SQL>
    SQL> INSERT ALL
      2     WHEN rownum <=15 THEN
      3             INTO dt_test_insert_1 (id)
      4     WHEN rownum >=10 THEN
      5             INTO dt_test_insert_2 (id)
      6  SELECT
      7     ID
      8  FROM
      9     dt_test_insert_base
    10  /
    26 rows created.
    SQL>
    SQL> SELECT * from dt_test_insert_1
      2  /
            ID
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
            11
            12
            13
            14
            15
    15 rows selected.
    SQL> SELECT * from dt_test_insert_2
      2  /
            ID
            10
            11
            12
            13
            14
            15
            16
            17
            18
            19
            20
    11 rows selected.
    SQL>
    SQL> TRUNCATE TABLE dt_test_insert_1
      2  /
    Table truncated.
    SQL> TRUNCATE TABLE dt_test_insert_2
      2  /
    Table truncated.
    SQL>
    SQL> INSERT FIRST
      2     WHEN rownum <=15 THEN
      3             INTO dt_test_insert_1 (id)
      4     WHEN rownum >=10 THEN --This condition is ignored until the value of id is > 15
      5             INTO dt_test_insert_2 (id)
      6  SELECT
      7     ID
      8  FROM
      9     dt_test_insert_base
    10  /
    20 rows created.
    SQL> SELECT * from dt_test_insert_1
      2  /
            ID
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
            11
            12
            13
            14
            15
    15 rows selected.
    SQL> SELECT * from dt_test_insert_2
      2  /
            ID
            16
            17
            18
            19
            20HTH
    David

  • Please what the difference between MFP1132 AND MFP1136 LASERJET PRINTER

    please what the difference between MFP1132 AND MFP1136 LASERJET PRINTER

    Nothing definite, but http://mindmachine.co.uk/products/HP_Texts/HP_LJ_Pro_M1130_01.html suggests that:
    The MFP1132 (part number CE847A) is for  American and European markets, and uses the CE285A toner cartidge.
    The MFP1136 (part number CE849A) is for  Asian markets, and uses the CE388A toner cartidge.

  • Whats the Difference Between BOM and Components??

    Hi all,
    I tried to create a SubContracting PO,i found BOM and Components in Item <b>Tab</b>
    but if i click components and BOM same data details exists,then whats the difference between component and BOM??
    and also Pls give me method of Creating PO with BOM
    Thanks a lot in advance

    Dear Veeranna Chavadi,
    This is some infirmation about BOM in PO subcontract
    1) The purchasing department processing time defined for the plant
    2) The planned delivery time from the material master record or purchasing info record
    3) The delivery date
    4) The goods receipt processing time from the material master record
    For Ex:
    Processing time Planned del. GR processing
    Purchasing time time
    Release PO Delivery Date
    date date date required
    Date required: 10.09.2007
    GR processing time: 2 days (working days)
    Planned delivery time: 10 days (calendar days)
    Purchasing dept processing time: 2 days (working days)
    Requirement date less GR processing time, planned delivery time, and purchasing department processing time.
    Hope you understand, this is as per the SAP help.
    what happen to u r query, if BOM is exploding please close this thread as answered
    Hope this helps you
    Prem.

  • Whats the difference between implements and extends!??

    Can an interface be extended or not??
    If it can whats the difference between implements and extends??
    Thank you!

    Code Sample:
    interface a implements aa{This is illegal. An interface cannot implement another interface. It can only extend another interface.
    interface a extends aa{That's the way to do it. As already said above:
    An interface can only extend another interface.
    A class can extend another class.
    A class can implement zero or more interfaces.
    So, "implements" is only used for classes that implement interfaces. For the rest, "extends" is used.

  • Whats the difference between SM50 and sm38

    HI GURUS
    whats the difference between SM50 and sm38??? job overview and process overview

    hi sharma,
    sm38: intial queueueue Info, information about the request quest queue of the server in question is displayed. The dispatcher forwards each request it receives to a work process of the appropriate type. If all the processes of this type are occupied, the dispatcher stores the request in a queue.
    In the queue info you can see for each work process type:
    ·        The number of requests currently waiting. Usually this should be 0.
    ·        The total number of requests waiting, since the server has been running.
    ·        The maximum number of requests that can be stored in the queue (specified in profile parameter rdisp/elem_per_queue)
    ·        The number of requests written and read since the server has been running.
    sm50: work process dialog steps in user transactions, updates, lock administration, etc.
    this transcatin Choosing Administration
    System Administration  Monitor  System Monitoring
    Process Overview or transaction
    For example, you can monitor processes to determine if the number of work processes in your system is adequate, to assess if the instance is working to full capacity, to gather information for trouble-shooting, or for tuning.
    DIA work process for executing dialog steps in user transactions.
    DIA work process for executing dialog steps in user transactions
    UPD: Update process for making U1 (time-critical) database changes
    UP2: Update process for executing U2 (not time-critical)
    database changes
    ENQ for setting and releasing locks on SAP lock objects
    BTC for executing background jobs
    SPO for spool formatting processes
    regards
    vijju

  • What the difference between getRequestMap() and getRequestParameterMap() ?

    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    Map requestMap = ec.getRequestMap();
    Map requestParameterMap = ec.getRequestParameterMap();
    What the difference between getRequestMap() and getRequestParameterMap() on earth?
    I have read the spec but I did not quite catch it.
    Thanks a lot!

    With the getRequestMap() you are operating with request "attributes". (with the getRequestParameterMap() with parameters)
    See the JSF API:
    http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/context/ExternalContext.html#getRequestMap()

  • Whats the difference between EPMA and Essbase Studio

    Aren't they both used for designing applications?
    And do one really need Essbase Studio?

    Whats the difference between EPMA and Essbase Studio ^^^It is a bit confusing, isn't it? As far as I understand EPMA's role, it's a way to share common dimensions and data across multiple Oracle EPM products including Essbase, Planning, and HFM. I actually don't know if other products live in EPMA. What EPMA does not have is a nice way of sourcing or manipulating dimension and fact tables (or even files). Oh, there are interface tables, but you will write code/use the EPMA dimension utility to load dimensions. I have to say I've never tried to load data through EPMA so someone else is going to have to comment on that. Once dimensions are built, you can deploy Essbase (and other products) from common and database-specific dimensions.
    Studio is the tool you would use to go against a data warehouse, or something awfully close to a data warehouse to build Essbase databases. It's for Essbase only -- Planning, HFM, etc. are not the targets of Studio's output.
    What gets confusing/intriguing is that when EPMA deploys Essbase apps, it uses Studio under the covers to do so. Thus the interesting implementations where people use Studio (which is way more flexible than EPMA because it is a development tool as opposed to a dimension/data management app) to read the EPMA interface tables (and for all I know, the base EPMA tables) and build Essbase apps that way.
    If you think there is overlap, I would agree with you, but you can see they really aren't the same.
    And do one really need Essbase Studio?^^^You don't have to use Studio to build Essbase databases. You can go hog-wild in EAS with SQL load rules if you want, although at some point it probably will be easier/more straightforward to build it in Studio. Although Studio has been mentioned as the replacement for EAS for some time, I suspect the effort required to build a database in Studio will keep EAS around for quite a while or Studio Lite will have to come out. There's a lot to be said (sometimes) for the amazing flexibility EAS/Essbase have -- Studio requires a more methodical approach and EPMA has a very formal set of standards and methods.
    Whew, I'm sorry, I wrote a book about this and I'll bet you get a bunch of differing opinions on this.
    If you're interested in Studio, you might do well to pick up a copy of Glenn Schwartzberg's "Look Smarter Than You Are with Oracle Essbase Studio 11". I receive not a penny from its sale although I was one of the copy editors (hey, I got a mention in the acknowledgements). It's a good book and an excellent introduction to the tool.
    Regards,
    Cameron Lackpour

  • Would you please summarize what the difference between tc and alv?

    hi, experts,
      would you please summarize what the difference between table control and alv base on the function and usage practice.
    for example, as i know:
    1.edit
      tc: can edit in the same screen and save.
      alv: pop up a sub screen to let user edit, so this is unconvenient.
    2.functional button
      alv: can have many functional button as default ,eg. sort, summary and so on
      tc:  developers must implements by himself.
    3.color
      alv: can have and change color
      tc:  cann't changed color
    some client may required the data displayed in alv and edit in tc ,such as example BCALV_EDIT_02.
    above are my idea, experts, would you give me some comments on my opinion and summarize what the difference between those two components? i should make it clear in order to consult the UI with my client.hunger for your advice, thanks!
    Message was edited by:
            liu shaochang

    ALV Grid is basically used for display puropse. It is more user friendly. There are arious features ( such as coloring, sorting, saving to a local file, sedning by mail etc. ) These featurs make ALV Grid a very good option to display the data .
    However , the table control is not only used to display data take from the database table, but also you can do operation such as deletion of data from database table, insertion of data into the database table and updation also. Yeah it has not got the various features whihc ALV has.
    So table control and ALV Grid , if you are just using for display purpose, then ALV Grid is a better option due to its layout and attractive features. But if you want to do the database operations other than display, table control can be used.
    As far as execution is concerned, I think ALV Grid is faster.
    ALV grid control is faster when compared to Table control. But the comaprision is Negligible .
    One of the major differences comes in taking of line items - ALV has an advantage over Table Control when it comes to update database from it.Table control only allows maximum of 999 records at a time where as this limitation is not there in ALV.
    Also,a main feature of ALV Grid is that it contains a standard set of functions. These functions extend beyond the functions of a table control.
    These two UI elements require different keyboard navigation, with ALV Grid being more user-friendly.
    An application can display table data in ALV Grid or in a table control. In some applications you can choose between displaying and editing data in either ALV Grid or a table control. If a configurable button () appears in the right upper corner of the table, it is a table control.
    Basically ALV is a way to display the output and Table Control is designed in screen painter through which you can get entries in Table Control, can delete some records etc for further processing and its not use only for Display.
    ALV is Application List viewer:-
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    TABLE CONTROL:-
    ABAP offers two mechanisms for displaying and using table data in a screen. These mechanisms are table controls and step loops. Table controls and step loops are types of screen tables you can add to a screen in the Screen Painter.

  • Whats the difference between Cost  and (%CPU)

    whats the difference between Cost (%CPU) in the newest version of the explain plan and just Cost in the Older versions?

    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    ======================================================
    i replaced this plan.....
    create table PLAN_TABLE (
         statement_id      varchar2(30),
         timestamp      date,
         remarks      varchar2(80),
         operation      varchar2(30),
         options      varchar2(30),
         object_node      varchar2(128),
         object_owner      varchar2(30),
         object_name      varchar2(30),
         object_instance numeric,
         object_type varchar2(30),
         optimizer varchar2(255),
         search_columns number,
         id          numeric,
         parent_id     numeric,
         position     numeric,
         cost          numeric,
         cardinality     numeric,
         bytes          numeric,
         other_tag varchar2(255),
         partition_start varchar2(255),
    partition_stop varchar2(255),
    partition_id numeric,
         other          long,
         distribution varchar2(30));
    for this one...
    create table PLAN_TABLE (
    statement_id varchar2(30),
    plan_id number,
    timestamp date,
    remarks varchar2(4000),
    operation varchar2(30),
    options varchar2(255),
    object_node varchar2(128),
    object_owner varchar2(30),
    object_name varchar2(30),
    object_alias varchar2(65),
    object_instance numeric,
    object_type varchar2(30),
    optimizer varchar2(255),
    search_columns number,
    id numeric,
    parent_id numeric,
    depth numeric,
    position numeric,
    cost numeric,
    cardinality numeric,
    bytes numeric,
    other_tag varchar2(255),
    partition_start varchar2(255),
    partition_stop varchar2(255),
    partition_id numeric,
    other long,
    distribution varchar2(30),
    cpu_cost numeric,
    io_cost numeric,
    temp_space numeric,
    access_predicates varchar2(4000),
    filter_predicates varchar2(4000),
    projection varchar2(4000),
    time numeric,
    qblock_name varchar2(30),
    other_xml clob
    );

  • Whats the difference between bookmarks and favorites?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/909148]]</blockquote>
    What is the difference between bookmarks and favorites? I use favorites, but only see instructions for bookmarks. I use windows 7 and all the folders and individual sites were listed together alphabetically. Now all the folders are listed together, and there are two different sections of alphabetized sites below that. Why? How do I get all the favorites listed together in alphabetical order?

    The term favorites, or favourites, is used by other browsers such as Internet Explorer, whereas Firefox uses the term bookmarks.
    The technology behind the two also differs somewhat, but it is still for instance possible to import favourites from IE to Firefox see
    * [[Importing favorites and other data from Internet Explorer]]
    Once the favourites are imported and appended to your bookmarks thay can be organised by dragging and dropping etc
    * [[how do i use bookmarks?]]

  • Whats the Difference between Wrapping and Inserting a subform?

    Pardon me for asking what is probably a silly question. But what is the difference between wrapping and inserting a subform? Thank you very much in advance.

    -When you insert a subform, a new subform that does not contain any form objects at the time of creation is added.
    -When you have existing form objects that you decide at a later time in your designing process to be contained in a subform, you can wrap these existing form objects by a subform.

Maybe you are looking for