Data dodania Pytanie
2017-10-04 16:10 Create stream lazily »
How can a stream be created lazily? During migration of collection based code I have run into this pattern multiple times: Collection collection = ve...
(1) odpowiedzi
2017-10-04 14:10 Firestore getProductID cannot be null error »
I am trying to use the new Firestore released by Firebase in my android app. Unfortunately I keep getting this error when trying to write to the datab...
(3) odpowiedzi
2017-10-04 11:10 Reading Oracle htp.p output into Java app »
We have built a dynamic stored proc reader due to the nature of our system. The only issue I have left is I am unable to read the htp.p output back in...
(0) odpowiedzi
2017-10-03 22:10 Error in running LISP code using JScheme in java »
Jar file PC location is mention below: cmd Command: javac -cp "C:\Users\Krishna\Downloads\jscheme-7.2.jar" sample\ABC.java java sample.ABC Sour...
(0) odpowiedzi
2017-10-03 21:10 Calling Ruby method from Java »
I have a Java application that depends on the result from a ruby script. The issue I'm facing is that this ruby script is called many times which requ...
(1) odpowiedzi
2017-10-03 21:10 Functional programming: How to carry on the context for a chain of validation rules »
I have a set of functions (rules) for validation which take a context as parameter and either return "Okay" or an "Error" with a message. Basically th...
(6) odpowiedzi
2017-10-03 15:10 How set initial size connection to postgresql in application.yml »
Always when i connect to my database, I see 10 idle connection. How can I set this in application.yml. I use spring boot 1.5.6.RELEASE. It's not wor...
(2) odpowiedzi
2017-10-03 12:10 Java Singleton with an inner class - what guarantees thread safety? »
One common (1,2) way of implementing a singleton uses an inner class with a static member: public class Singleton { private static class Sin...
(2) odpowiedzi
2017-10-03 12:10 Can't replace SAM-constructor with lambda when first argument is a class with one method »
I’m puzzled over SAM constructors, I have this Java class: public class TestSam<T> { public void observe(ZeroMethods zero, Observer<T...
(1) odpowiedzi
2017-10-03 06:10 What's the difference between requires and requires static in module declaration »
What's the difference between requires and requires static module statements in module declaration? For example: module bar { requires java.comp...
(2) odpowiedzi
2017-10-03 04:10 Error encode/decode Base64 between Java and Android »
As my question, I have a big problem when I encode/decode Base64 between Java and Android. Here is my case: I write code to encrypt/decrypt using EC...
(1) odpowiedzi
2017-10-02 22:10 Create Module in JShell in Java 9 »
Just exploring new release of Java, its new module system, and playing with jshell as well. Probably my question doesn't have too much sense, but I am...
(1) odpowiedzi
2017-10-02 21:10 All values in RecycleView and ListView are changing while I'm using dialog »
I have a dialog and I want to add a recyclerView or listView and I know that I have to use a List to control items in each row. Now when I want to cha...
(2) odpowiedzi
2017-10-02 11:10 Dealing with changed ENUM definitions - database »
Introduction The lead architect went and changed the ENUM definition in a spring boot project. From: public enum ProcessState{ C("COMPLETE"), ...
(3) odpowiedzi
2017-10-02 10:10 SunPKCS11 provider in Java 9 »
Up to Java 8 the SunPKCS11 provider was loaded like this: Provider provider = new sun.security.pkcs11.SunPKCS11 (new ByteArrayInputStream (configFile...
(2) odpowiedzi
2017-10-02 07:10 Can I run timer at different intervals of time? »
Actually i wanted to ask can i give value from database to a timer delay? Timer timer = new Timer(); TimerTask timerTask = new TimerTask() { ...
(2) odpowiedzi
2017-10-02 05:10 What's the difference between Objects.requireNonNullElse() and Optional.ofNullable().orElse()? »
Java 9 introduces the requireNonNullElse and requireNonNullElseGet methods to the Objects class. Are these functionally any different to the Optional....
(2) odpowiedzi
2017-10-01 17:10 Java 9 - What is the difference between "Modules" and "JAR" files? »
I am learning about Java 9 from What's New in Java9 and one of the hot topic in the discussion is The Modular JDK. I have some doubts: Are JAR fil...
(3) odpowiedzi
2017-10-01 15:10 How is String concatenation implemented in Java 9? »
As written in JEP 280: Change the static String-concatenation bytecode sequence generated by javac to use invokedynamic calls to JDK library funct...
(3) odpowiedzi
2017-10-01 10:10 Adding elements to different collections in a single lambda expression »
I possibly use the wrong terms, feel free to correct. I have a test method which takes a Runnable: void expectRollback(Runnable r) { .. } I can ca...
(2) odpowiedzi
2017-09-30 21:09 Why does short-circuit evaluation work when operator precedence says it shouldn't? »
In JavaScript and Java, the equals operator (== or ===) has a higher precedence than the OR operator (||). Yet both languages (JS, Java) support short...
(3) odpowiedzi
2017-09-30 17:09 Warning: Failed prop type: The prop `todos[0].title` is marked as required in `TodoList`, but its value is `undefined` »
I want to add title to my server as you see in the picture enter image description here its ok to value but its not working with title, title is in ...
(1) odpowiedzi
2017-09-30 13:09 What's the difference between requires and requires transitive statements in Java 9 module declaration »
What's the difference between requires and requires transitive module statements in module declaration? For example: module foo { requires java.b...
(5) odpowiedzi
2017-09-30 11:09 How to deal with java keywords in auto generated module names in Java 9? »
My project depends on Netty Epoll transport. Here is dependency: <dependency> <groupId>io.netty</groupId> <artifactId&gt...
(1) odpowiedzi
2017-09-30 10:09 What does "Required filename-based automodules detected." warning mean? »
In my multi-module project, I created module-info.java only for few modules. And during compilation with maven-compiler-plugin:3.7.0 I'm getting next ...
(2) odpowiedzi
2017-09-30 09:09 Java 8, how to group stream elements to sets using BiPredicate »
I have stream of files, and a method which takes two files as an argument, and return if they have same content or not. I want to reduce this stream ...
(2) odpowiedzi
2017-09-30 01:09 Failing to see the point of the Functional interfaces 'Consumer' and 'Supplier' »
I realize the uses of Predicate and Function, used for passing in a loosely-coupled conditional and function to a method respectively. Predicates are...
(2) odpowiedzi
2017-09-29 22:09 Algorithms: Hybrid MergeSort and InsertionSort Execution Time »
Good day SO community, I am a CS student currently performing an experiment combining MergeSort and InsertionSort. It is understood that for a certai...
(1) odpowiedzi
2017-09-29 21:09 Are there dangers in making an existing Java interface functional? »
As a rule, in the context of a large project, is it considered safe to take make an existing, ubiquitously used interface into a functional interface?...
(4) odpowiedzi
2017-09-29 15:09 Maintaining ordering in multithreaded apache camel application »
We use Tibco EMS as our messaging system and have used apache camel to write our application. In our application, messages are written to a queue. A c...
(1) odpowiedzi
2017-09-29 07:09 What is an open module in Java 9 and how to use it »
What is the difference between module with open keyword before and without it? For instance: open module foo { } module foo { } ...
(2) odpowiedzi
2017-09-29 06:09 Android LocationServices.FusedLocationApi deprecated »
I couldn't figure out why LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient,mLocationRequest, this); "FusedLocationApi" is cro...
(2) odpowiedzi
2017-09-28 19:09 Java 8 Predicate placement in project structure »
I am wondering where should I place java 8 predicates in standard web java project structure. Lets assume that my project structure looks like that: ...
(0) odpowiedzi
2017-09-28 19:09 Sudden error: No static method setWebDialogTheme(I)V »
Someone already asked this question but was put on hold so I thought I'd try. We both had the same problem at about the same time so I was wondering i...
(1) odpowiedzi
2017-09-28 16:09 JRuby: Not found despite being installed and linked »
Not sure whats up with this issue... Warning: jruby 9.1.13.0 is already installed, it's just not linked. You can use brew link jruby to link this v...
(0) odpowiedzi