<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>cast on T[h]ink]er[ing</title>
    <link>https://torokmark.github.io/tags/cast/</link>
    <description>Recent content in cast on T[h]ink]er[ing</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 23 May 2020 12:00:00 +0100</lastBuildDate>
    <atom:link href="https://torokmark.github.io/tags/cast/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Do you know Java: Pattern Matching for instanceof</title>
      <link>https://torokmark.github.io/posts/do-you-know-java-instanceof-pattern-matching/</link>
      <pubDate>Sat, 23 May 2020 12:00:00 +0100</pubDate>
      <guid>https://torokmark.github.io/posts/do-you-know-java-instanceof-pattern-matching/</guid>
      <description>Java 15 brings a syntactic sugar, called Pattern Matching for instanceof, with which we can shorten the code and make it more safe.&#xA;In prior versions of Java, the instanceof operator workes as follows:&#xA;Object o = &amp;#34;asdf&amp;#34;; if (o instanceof String) { String s = (String) o; System.out.println(o); } Java 15 - and Java 14 as a preview feature - introduces an enhanced instanceof operator, which brings the ability to cast the eximined instance to the type of the right operand.</description>
    </item>
  </channel>
</rss>
