Skip to content

mvpjava/java-records-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-records-tutorial

Tutorial on Java 14’s data records (a preview feature)

Java records are a preview feature available in Java 14 which natively reduces boilerplate code when dealing with Data Classes. Learn how we can actually model data as data-only aggregates and close the gap in Java’s type system

Java 14 Records - Preview Feature

This tutorial supports Blog post "Java Records : Boilerplate Exterminator" from mvpjava.com

Blog Post: http://mvpjava.com/java-records/ YouTube Tutorial: https://youtu.be/0yb80kTO2UQ

This has all been setup for you to run within an official Docker container with access to all the JShell *.jsh script files for you to play around with.

The environment is reproducible by simply executing "run.sh" after git cloning this repository.

Running a .jsh script example from JShell ...

jshell> /open /root/demo.jsh

When you want to list the code snippets in jshell script ...

jshell> /list

Executing individual JShell snippets ...

jshell> /list 1

Exiting JShell and thus Docker Conatiner ...

jshell> /exit

======================================================

Subscribe to MVP Java ...

https://www.youtube.com/c/MVPJava?sub_confirmation=1

Follow me ...

Website : http://www.mvpjava.com

Facebook : https://www.facebook.com/mvpjava

Twitter : https://twitter.com/mvpjava

DockerHub: https://hub.docker.com/?namespace=mvpjava

Company: http://www.triomni-it.com

About

Tutorial on Java 14’s data records (a preview feature)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages