Explore how to create a list of objects of a different type based on a given list.
Search Results for: object
Update an Existing Amazon S3 Object Using Java
Learn how to replace the existing file content with newer content for the same AWS S3 path using AWS Java SDK.
Stateless Object in Java
Java requires all code to be in classes. Sometimes we may need to create an object with no state in order to help achieve a design pattern. We look at stateless objects and how they function.
Converting JsonNode Object to Map
A quick and practical guide to converting JsonNode to Map in Java.
Listing All AWS S3 Objects in a Bucket Using Java
Learn how to list all objects in an S3 bucket using AWS SDK V2 for Java.
Converting Object To Map in Java
Explore various approaches such as reflection, Jackson, and Gson to convert Java Objects into Java Maps.
Converting Map<String, Object> to Map<String, String> in Java
Learn different ways to convert a Map to Map.
Java Serialization: readObject() vs. readResolve()
Learn the differences between the readObject() and readResolve() methods of the Java Serialization API.
Convert Hashmap to JSON Object in Java
Learn how to convert a Map to JSON in Java.
Object.toString() vs String.valueOf()
Discover the differences between the String.valueOf() and Object.toString() methods.
Fix the JsonMappingException: Can not deserialize instance of java.util.ArrayList from Object value (token `JsonToken.START_OBJECT`)
Learn how to fix a common JsonMappingException when deserializing a JSON string.
Anemic vs. Rich Domain Objects
Explore the differences between anemic and rich domain models in Java.
Different Ways to Create an Object in Java
Learn how to use keywords, such as new or class, to create an object.
Cassandra – Object Mapping with DataStax Java Driver
There are a few ways to map objects and operations to Cassandra. We look at how to use the DataStax driver to achieve object mapping, queries and native functions.
Check if Object Is an Array in Java
Learn two ways to check if a given object is an array.
Convert an ArrayList of Object to an ArrayList of String Elements
Discover strategies to normalize lists of objects to strings in Java.
Check If All the Variables of an Object Are Null
Explore the importance of checking for null variables in our Java classes.
Getting a Value in JSONObject
A quick and practical guide to getting a value from JSONObject.
Object Validation After Deserialization
Learn how to use Java’s Validation API to validate objects after deserialization.
Sort Collection of Objects by Multiple Fields in Java
Learn different approaches for sorting collections by comparing multiple fields.