Why use symbol "!" here?

Why use symbol "!" here?
if (!contactOld.getWorkAddress().equals(
public void entryUpdated(MapEvent event)
Contact contactOld = (Contact)event.getOldValue();
Contact contactNew = (Contact)event.getNewValue();
StringBuffer sb = new StringBuffer();
if (!contactOld.getHomeAddress().equals(
contactNew.getHomeAddress()))
sb.append("Home address ");
if (!contactOld.getWorkAddress().equals(
contactNew.getWorkAddress()))
sb.append("Work address ");
if (!contactOld.getTelephoneNumbers().equals(
contactNew.getTelephoneNumbers()))
sb.append("Telephone ");
sb.append("was updated for ").append(event.getKey());
System.out.println(sb);
}

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html
:Rob:
Coherence Team

Similar Messages

  • Why use symbol {   } in the following script?

    Why use symbol *{   }* in the following script?
    <read-write-backing-map-scheme>
    <scheme-name>SampleDatabaseScheme</scheme-name>
    <internal-cache-scheme>
    <local-scheme>
    <scheme-ref>SampleMemoryScheme</scheme-ref>
    </local-scheme>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.tangosol.examples.coherence.DBCacheStore</class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    *<param-value>{cache-name}</param-value>*
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    Thank you very much
    Edited by: jetq on Jun 24, 2009 6:26 PM

    Hi Frank,
    In the example, the "{cache-name}" is supposed to be replaced by the database's table or view name that will be queried for the data to be cached. It's purpose is demonstrate how to pass parameters to the class constructor.
    Regards,
    Harv

  • Why use KeyExtractor here? How about remove it?

    Please see the following script:
    setResults = cache.entrySet(new AndFilter(
    new LikeFilter(new KeyExtractor("getLastName"), "S%",
    (char) 0, false),
    new EqualsFilter("getHomeAddress.getState", "MA")));Why use KeyExtractor here? How about remove it and make it like:
    setResults = cache.entrySet(new AndFilter(
    new LikeFilter("getLastName"), "S%"),
    new EqualsFilter("getHomeAddress.getState", "MA")));Is this scrip right?
    Edited by: jetq on Oct 23, 2009 2:08 PM

    I Googled for KeyExtractor and the likeliest-looking thing was javadocs for com.tangosol.util.extractor.KeyExtractor on an Oracle site.
    Why don't you check around the Oracle developer site for a forum specifically about whatever product this is?

  • Why use the symbol "|" here?

    Why use the symbol "|" here?
    SQL> @D:/temp/emp_package.sql|

    Hi,
    To me it seems that some parameter is passed (but i doubt why somebody would be passsing "|") to the sql file during the run time.
    One reason could be to tell the file what is the deliminator. Is this the case for you?
    Regards
    Anurag Tibrewal.

  • HT204053 Why I can't purchase anything from UK Appstore? It says my ID connected to Kazakhstani store and I can't use it here in UK, I used to live in KZ. How to change stores? Create new ID? But I still have my old e-mail address, will it valid?

    Why I can't purchase anything from UK Appstore? It says my ID connected to Kazakhstani store and I can't use it here in UK, I used to live in KZ. How to change stores? Create a new ID? But I still have my old e-mail address, will it valid as a new ID?

    Welcome to the Apple Support Communities
    You can only purchase content on the Kazakhstani store because you created your Apple ID on that country. To change the country, see "Change your iTunes Store country" > http://support.apple.com/kb/HT1311?viewlocale=en_US&locale=en_US

  • In another words, why use Parameter Macros here ?

    Why do not pass actual values directly for the parameters <high-units> and <expiry-delay> ?
    In another words, why use Parameter Macros here ?
    <local-scheme>
    <scheme-name>example-backing-map</scheme-name>
    <eviction-policy>HYBRID</eviction-policy>
    *<high-units>{back-size-limit 0}</high-units>*
    *<expiry-delay>{back-expiry 1h}</expiry-delay>*
    <flush-delay>1m</flush-delay>
    <cachestore-scheme></cachestore-scheme>
    </local-scheme>
    This fraction come from the following file:
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
        <caching-scheme-mapping>
            <cache-mapping>
                <cache-name>test</cache-name>
                <scheme-name>example-near</scheme-name>
            </cache-mapping>
        </caching-scheme-mapping>
        <caching-schemes>
            <distributed-scheme>
                <scheme-name>example-distributed</scheme-name>
                <service-name>DistributedCache</service-name>
                <backing-map-scheme>
                    <local-scheme>
                        <scheme-ref>example-backing-map</scheme-ref>
                    </local-scheme>
                </backing-map-scheme>
                <autostart>true</autostart>
            </distributed-scheme>
            <near-scheme>
                <scheme-name>example-near</scheme-name>
                <front-scheme>
                    <local-scheme>
                        <eviction-policy>
                            <class-scheme>
                                <class-name>MyEvictionPolicy</class-name>
                            </class-scheme>
                        </eviction-policy>
                        <high-units>10</high-units>
                    </local-scheme>
                </front-scheme>
                <back-scheme>
                    <distributed-scheme>
                        <scheme-ref>example-distributed</scheme-ref>
                    </distributed-scheme>
                </back-scheme>
                <invalidation-strategy>all</invalidation-strategy>
                <autostart>true</autostart>
            </near-scheme>
            <local-scheme>
                <scheme-name>example-backing-map</scheme-name>
                <eviction-policy>HYBRID</eviction-policy>
                <high-units>{back-size-limit 0}</high-units>
                <expiry-delay>{back-expiry 1h}</expiry-delay>
                <flush-delay>1m</flush-delay>
                <cachestore-scheme></cachestore-scheme>
            </local-scheme>
        </caching-schemes>
    </cache-config>Edited by: qkc on 30-Nov-2009 08:32

    qkc wrote:
    Where do back-size-limit and back-expiry come from?You can specify them as init parameters within the cache-mapping.
    <cache-config>
      <caching-scheme-mapping>
        <cache-mapping>
          <cache-name>test</cache-name>
          <scheme-name>example-near</scheme-name>
          <init-params>
            <init-param>
              <param-name>back-size-limit</param-name>
              <param-value>...</param-value>
            </init-param>
            <init-param>
              <param-name>back-expiry</param-name>
              <param-value>...</param-value>
            </init-param>
          </init-params>
        </cache-mapping>
        ...Best regards,
    Robert

  • Why i am not able to use '+' symbol in ISQL PLUS

    I am getting error if i use + symbol in my plsql program while using isqlplus

    Following runs fine when run in isqlplus
    set serverout on
    begin
      dbms_output.put_line('3+5=' || (3+5));
    end;
    /Whats your issue exactly?

  • Using Symbol Font in Pages/Keynote etc.

    Here is a strange problem: Whenever I want to insert a greek character from Symbol font Pages (09 as well as 08, and Keynote ...) replaces it by some standard font (probably Helvetica). In effect, Symbol is not available. If I want to write a simple formula containig a greek character (as e.g a small beta) I have to use Mathtype or copy and paste from word. Good old Appleworks also works fine with Symbol font.
    Can anybody help?? What am I doing wrong???

    Using the character pallette or activating the greek keyboard will of course do. It seems an awkwardly labourious way to me, though. If I understand you correctly there is no other way. Why would symbol font (which is not greek but symbol!) not work in the same way as e.g. Wingdings (Zapf Dingbats behaves just as symbol, though)? I Don't care for Unicode, but this, I think, is unfortunate.
    It is the other way around - the way monotonic Greek and mathematics are drawn in Adobe PostScript is a disaster -:). It helps to read Inside Macintosh: Text, published in 1993, and the PostScript Language Reference Manual, first and second version.
    How was monotonic Greek and mathematics drawn on the Apple LaserWriter in 1985? Well, it was drawn by depicting the glyphs for monotonic Greek and mathematics in the built-in Adobe Symbol font program dictionary onto Apple Roman.
    Adobe PostScript provides two procedures to get from characters to glyphs, StandardEncoding and FontSpecific encoding. The latter encoding vector is used when the Adobe PostScript configurable name space that replaces a character set is used to overrule the operating system character set.
    If you were typing monotonic Greek because you wanted to type Greek, and not because you wanted to type mathematics, you were in the ditch with this hack since the hack broke spelling, sorting and searching which are processes that are predicted on character codes.
    Apple Royal, now Apple Advanced Typography, was a project that took two directions to address the problem of drawing to the display and the printer.
    First, the CMAP Character Map was intended to include the characters for the writing systems of world scripts.
    Second, the layout logic to map from characters to glyphs was intended to provide evaluatable appearances for stylistic alternates such as small capitals, superscripts, subscripts and ligatures.
    Adobe PostScript is a one-to-one mapping model that by definition is incapable of protecting the source character string when drawing fine typography.
    You may rest assured that the issue of interactive input methods is on the agenda for computer manufacturers. For instance, Microsoft failed in a bid to acquire Swiss keyboard maker Logitech in 2008.
    /hh

  • How can you use symbols in Windows 7 on a IMac 27

    How can you use symbols @$€%£¥ in Windows 7 on a IMac 27 mid 2011?  I tried what was normally done on Windows and got nothing.  Alt plus numbers and nothing happens, what am I missing?

    Frosted Flake,
    Are you referring to an equivalent to the Windows Character Map Application (charmap.exe) that allowed you to see the various characters available in each font, and then give you an ALT-nnn number you could key to use the character you wanted ?
    If so you can use the Special Characters from the Edit menu of most applications. Once you have located the character/symbol you want double click it and it will be entered wherever you cursor is located in your application.
    Further information can be found here :
    http://support.apple.com/kb/PH3871
    Hope this helps
    Cheers
    AF

  • Why use layer masks and adjustment layers?

    I've been using PSE and CS successfully for years.
    One thing I have never understood is: why use layer masks and adjustment layers, instead of simply creating a copy of the subject layer (the one I want to make changes to) and experimenting with that?  It's quick (Ctrl-J), I can do it as many times as I want, I'm not affecting my Background layer.  If I like the changes, I can keep them.  I can switch the copy on and off to compare with the Background layer.  I can do any type of blend or combination I desire.  I can insert Gradient layer(s), select any part of the copy and (Ctrl-J) create a new layer containing only the selected part.  I can adjust size, rotate, do anything.
    It almost seems that "layer mask" and "adjustment layer" are mainly another layer of terminology; can anyone explain (preferably in 50 words or less) how they are intrinsically different from or superior to working with copies of the Background layer?  What can be done with them that can't be done simply using copies of the Background layer?

    Here's a very basic example of the advantage of using a layer mask.
    I have this picture of a sunflower and I want to convert the background to black & white, leaving just the flower in color.  I duplicated the Background layer, converted it to B&W and proceeded to use the Eraser to uncover the flower color. But I made a mistake and erased outside the flower.  There is no way to correct this other than deleting the layer and starting again.
    Now let's use a layer mask on the B&W layer. Set the Foreground/Background colors to the defaults black/white. Using the Brush tool paint on the mask with black to reveal the color.  Here I painted too far, revealing a green leaf in the background.  No need to start over.  Simply switch to white and paint the excess to convert back to the B&W.
    Tip: while painting you can type "X" to toggle between black and white.
    You could also select the flower using the various selection tools and then fill the selection with black. If it turns out the selection was not 100% accurate you can then fine-tune the result by painting on the mask with black or white as necessary.

  • Why use go:title etc...

    I've just seen this in the meta data of a website:
    <meta property="og:title" content="foobar...
    There's loads of them… go:description… go:audio… go:keywords… and so on
    Apparently it's to do with open graph and Facebook which I don't fully understand, but why use it and what are the advantages? I've googled it, but I'm finding little ore than what I already mentioned. Just wondering if anybody here knew a little more detail than the info I've found.
    Thanks.
    Mat

    From this page - Facebook Content Sharing Best Practices
    I read:
    Use proper Open Graph tags
    Open Graph tags are included in your page’s HTML and allow the Facebook Crawler to generate previews when your content is shared on Facebook.
    We give examples below, but the basic Open Graph tags you should implement are:
    og:title – The title of your article, excluding any branding.
    og:site_name - The name of your website. Not the URL, but the name. (i.e. "IMDb" not "imdb.com".)
    og:url – This URL serves as the unique identifier for your post. It should match your canonical URL used for SEO, and it should not include any session variables, user identifying parameters, or counters. If you use this improperly, likes and shares will not be aggregated for this URL and will be spread across all of the variations of the URL. 
    og:description – A detailed description of the piece of content, usually between 2 and 4 sentences. This tag is technically optional, but can improve the rate at which links are read and shared.
    etc.

  • Why use “synchronized” to decorate an object which its type is Vector

    Hello,guys.
    Recently,I readed the source code of java.util.Observable.Unfortunately,I encounted some problems&#12290;In the source code ,there is an object named “obs”.Its type is Vector. As we all know,Vector is thread-safe.why use “synchronized” in below code?
        public synchronized void deleteObservers() {
         obs.removeAllElements();
        }thanks.
    Edited by: qiao123 on Dec 21, 2009 7:07 PM

    My " NewBie" Definition of Thread Safe :Is of no interest. It already has a definition and that isn't it.I wanted to make clear what my definition is.
    The [JLS DEF FOR COLLECTION|http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html] says:
    That is the Javadoc for Collections actually, nothing to do with the JLS or Collection.They are authoritative links for Java Language and the discussion in hand, not Fantasies of Lucy Aunty.
    So,how do we draw any inference(s) here?Yes, that you have selectively quoted the Javadoc, which goes on to talk about how you have to use it when iterating.Still not answering my question,Sir.
    ejp,you seem to have knowledge but you don't have the attitude to forward the same to others or bear what others say,even when initiative has been taken by others to put forward a problem.
    P.S : Not all hackers are arrogant and not all arrogant are hackers.
    Another P.S : Waste of my time really !!!
    Edited by: punter on Dec 22, 2009 1:09 AM

  • Why use RMAN CATALOG ?

    Hi,
    Anybody tell me why use RMAN CATALOG and what benifits if i have create catalog ?

    No we have to configure it. I see. But did this user understand that when you quoted my reply ? We need to understand that a lot of users who post here need help and may not have the level of knowlege you have. So, a response like that adds more problems to the one they already have.
    So even if you are using nocatalog, if it is not configured to auto backup and it is not backed up, you can still loose your RMAN repository.

  • Why use cfinclude

    why use cfincludes for headers and footers instead of using
    templates?

    > However this is what I mean in your
    > words: that facility in DreamWeaver that simulates the
    factoring code out into
    > separate files!
    Right: that makes sense now. Bear in mind that this is a CF
    forum, not a DW
    forum, so when you say "template", people here are going to
    instinctively
    think you mean the CF definition of that term; they're not
    going to guess
    you're asking about DW. I don't think that's unreasonable.
    DW templates are just a trick of DW. That's not just a
    truism: the
    ramification of that is that the DW templating mechanism is
    meaningless
    concept outside of DreamWeaver. That's not to be dismissive,
    but a lot of
    people don't use DreamWeaver for doing their CF coding. So
    that's probably
    the first reason not to use a tool-specific feature when
    writing code.
    Secondly, DW templates are an HTML-document-centric conceit,
    wherein
    there's - ultimately - a single file for the entire HTML
    response. That's
    really not the way anyone other than a dabbler would write
    their CF code,
    because it becomes unmanageable very quickly.
    Now, if you are just a dabbler - I don't mean that derisively
    - and the
    extent of your dynamicism in your HTML coding is to factor
    out repeating
    regions within a layout, AND the code is only ever going to
    be maintained
    with DW... yeah, why not: use DW templates.
    > Thanks for all the replies and I apologize if my vauge
    question encouraged
    > such helpful???? answers. Azadi and Craig, thanks for
    your thoughts...you too
    > Adam!
    NP.
    Adam

Maybe you are looking for