Javaã§ã®ããã°ã©ã ã§ã¯ãOptionalãå ¥ã£ãã¨ã¯ãããnullã¨ã®ã¤ãããã¯ä¾ç¶ã¨ãã¦éè¦ã§ãã ãããªä¸ã§ãnullãå ¥ã£ã¦ãã¨å°ãå¦çãæ¸ãã¨ãã«ã¯ãnullãã§ãã¯ãè¡ãã»ããå®å ¨ã§ãã ãã®ã¨ããã©ã®ããã«nullãã§ãã¯ãè¡ããã¨ããã®ãåé¡ã«ãªãã¾ãã Java7ããã¯ãObjects.requiredNonNullã¨ããã¡ã½ãããå°å ¥ãããã®ã§ããã®ã¡ã½ããã使ã£ã¦ã以éã®å¦çã§nullãããªããã¨ãä¿è¨¼ããã¨ãããã¨ãã§ãã¾ãã ãã©ããã®requiredNonNullãé ãããããªããã¨ãã話ãããã®ã§ãã©ãé ãã®ã調ã¹ã¦ã¿ã¾ããã requireNonNullã¨åæ§ã«ãå¤ãnullã ã£ããNullPointerExceptionãåãã¦ãnull以å¤ã ã£ããç´ éãããã¨ããæ¸ãæ¹ã®ã²ã¨ã¤ã«ãgetClassã¡ã½ãããå¼ã³åºãã¨ãããã®ãããã®ã§ãããã¨æ¯ã¹ã¦ã¿ã¾
{{#tags}}- {{label}}
{{/tags}}