Developer Archives - UC Mobile Apps https://uc-mobileapps.com Innovative Software Development, Android Mobile Applications & Developer Tools Wed, 24 Mar 2021 10:07:16 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.3 https://uc-mobileapps.com/wp-content/uploads/2018/07/cropped-UC-Logo-65x65.png Developer Archives - UC Mobile Apps https://uc-mobileapps.com 32 32 Default methods aspect oriented programming on JPA entities https://uc-mobileapps.com/blog/2016/04/02/aspects-default-methods-java-jpa-entities/ Sat, 02 Apr 2016 13:25:08 +0000 https://uc-mobileapps.com/?p=527 When working with entity classes it is common not to add additional logic to the objects. This avoids dependencies in the code to keep it modular and maintainable. With default methods it is possible to enhance the entities in a simple way without affecting the original notion of a business object that just keeps the data. …

Default methods aspect oriented programming on JPA entities Read More »

The post Default methods aspect oriented programming on JPA entities appeared first on UC Mobile Apps.

]]>
The right Java bytecode version for Android https://uc-mobileapps.com/blog/2015/12/08/android-unexpted-top-level-exception/ Tue, 08 Dec 2015 14:09:44 +0000 https://uc-mobileapps.com/?p=509 Android up to API level 23 does not support all possibilities of Java 8, the classes that the compiler generates have a version flag to denote which bytecode extensions can be inside of it. If you ever happen to hit an error like this during your build UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Exception parsing classes         …

The right Java bytecode version for Android Read More »

The post The right Java bytecode version for Android appeared first on UC Mobile Apps.

]]>
Spliterator for “in-between” lambda processing https://uc-mobileapps.com/blog/2015/11/30/differentiating-spliterator-for-lambda-processing/ Mon, 30 Nov 2015 08:29:48 +0000 https://uc-mobileapps.com/?p=493 The usecase of summing up the distances in a list of vectors can benefit from parallelization on todays multi-core systems with Java 8 lambdas using a Spliterator. If one writes vecList.stream().mapToDouble( e-> e.getDistance( b ) Then a reference to the next point “b” isn’t there hence the calculation cannot be performed that way. There is a …

Spliterator for “in-between” lambda processing Read More »

The post Spliterator for “in-between” lambda processing appeared first on UC Mobile Apps.

]]>
Generic interfaces and algorithms https://uc-mobileapps.com/blog/2015/11/27/algorithms-for-generic-interfaces/ Fri, 27 Nov 2015 06:20:17 +0000 https://uc-mobileapps.com/?p=391 A common pattern in object oriented programming is interfacing classes that have the same methods. If these classes encapsulate a datatype and expose  methods that take the datatype as a parameter, generic interfaces. The approach results in the ability to apply a generic algorithm on different encapsulated data types. For example vector math classes have …

Generic interfaces and algorithms Read More »

The post Generic interfaces and algorithms appeared first on UC Mobile Apps.

]]>