Category: Introducing Java Native Access (JNA)

Introducing the Skip List data structure – Arrays, collections and data structuresIntroducing the Skip List data structure – Arrays, collections and data structures

113. Introducing the Skip List data structure The Skip List data structure is a probabilistic data structure built on top of a linked list. A Skip List uses an underlying [...]

Introducing the K-D-trees data structure – Arrays, collections and data structuresIntroducing the K-D-trees data structure – Arrays, collections and data structures

114. Introducing the K-D-trees data structure A K-D Tree (also referred to as a K-Dimensional tree) is a data structure that is a flavor of Binary Search Tree (BST) dedicated [...]

Introducing the Splay Tree data structure – Arrays, collections and data structuresIntroducing the Splay Tree data structure – Arrays, collections and data structures

120. Introducing the Splay Tree data structure A Splay Tree is a flavor of Binary Search Tree (BST). Its particularity consists of the fact that it is a self-balancing tree [...]

Implementing a custom pattern-based ObjectInputFilter – Java I/O: Context-Specific Deserialization FiltersImplementing a custom pattern-based ObjectInputFilter – Java I/O: Context-Specific Deserialization Filters

128. Implementing a custom pattern-based ObjectInputFilter Let’s assume that we already have the Melon class and the helper methods for serializing/deserializing objects to/from byte arrays from Problem 124.Creating a pattern-based [...]

Implementing a custom method ObjectInputFilter – Java I/O: Context-Specific Deserialization FiltersImplementing a custom method ObjectInputFilter – Java I/O: Context-Specific Deserialization Filters

130. Implementing a custom method ObjectInputFilter Let’s assume that we already have the Melon class and the helper methods for serializing/deserializing objects to/from byte arrays from Problem 124.An ObjectInputFilter can [...]

Avoiding StackOverflowError at deserialization – Java I/O: Context-Specific Deserialization FiltersAvoiding StackOverflowError at deserialization – Java I/O: Context-Specific Deserialization Filters

132. Avoiding StackOverflowError at deserialization Let’s consider the following snippet of code: // ‘mapOfSets’ is the object to serialize/deserializeHashMap<Set, Integer> mapOfSets = new HashMap<>();Set<Set> set = new HashSet<>();mapOfSets.put(set, 1);set.add(set); And, [...]

Introducing JDK 17 easy filter creation – Java I/O: Context-Specific Deserialization FiltersIntroducing JDK 17 easy filter creation – Java I/O: Context-Specific Deserialization Filters

134. Introducing JDK 17 easy filter creation Starting with JDK 17, we can express filters more intuitively and readable via two convenient methods named allowFilter() and rejectFilter(). And, since the [...]