Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Version vs Scenario

hyperion startFeb 21 2014 — edited Feb 21 2014

Gurus,

A quick question regarding the version and scenario.

How are they related to each other when it comes to planning? For example, do we need to have same security settings for users when it comes to these dimensions, or we can have any kind of security on these two.

Any suggestion regarding how to achieve good result in terms of user security in terms of version and scenario?

Thanks

Comments

Ajit Kumar Singh

Thanks  Nice Article.

Parikshit Kumar Singh

It would be create if you could enrich it with code through github URL etc.

Good explanation.

sun_certified

Actually, @JosePaumard, in the "Optionals: First Patterns" section where you have...

     Optional<Person> opt = ...;    
     if (opt.isPresent()) {       
          int value = opt.get(); // there is a value   
     } else {       
          // decide what to do   
     }

... the line with the comment "// there is a value" would fail compilation with a "incompatible types: Person cannot be converted to int" error.

3381266

You wrote that

The Optional class could have been returned by the map.get() method

could be used to distinguish between having a  'null' value stored in the map and not having the given key. This does not work since Optional does not allow 'null'  as a value (at least under Java 8) - 'null' is used to flag the empty Optional (no value present)!

sun_certified

@JosePaumard In the code in the "Calculating the Inverse of a Square Root, Second Version" section, the inverse operation is done first, and then the result of that inverse operation is passed to the sqare root operation. So that code is actually calculating the square root of the inverse...

Function<Double, Stream<Double>> invSqrt =

    d ‐> OptionalMath.inv(d).flatMap(OptionalMath::sqrt)

                       .map(Stream::of)

                       .orElseGet(Stream::empty);

Java- it is my like programme

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 21 2014
Added on Feb 21 2014
4 comments
767 views