Effective Java Chapter 6 34-35

Chapter 6. ENUM and Annotations

34. Use enums instead of int constants

http://d.hatena.ne.jp/hageyahhoo/20091115/1258258461

35. Use instance field values rather than ordinal

Recommended Posts

Effective Java Chapter 2
Effective Java Chapter 6 34-35
Effective Java Chapter 4 15-22
Effective Java Chapter 3
Effective Java 3rd Edition Chapter 5 Generics
Effective Java 3rd Edition Chapter 8 Methods
[Read Effective Java] Chapter 2 Item 7 "Avoid Finalizers"
Effective Java 3rd Edition Chapter 9 Program General
Java Performance Chapter 1 Introduction
effective java 3rd summary
Builder pattern (Effective Java)
Java Performance Chapter 3 Java Performance Toolbox
Effective Java 3rd Edition Chapter 6 enums and annotations
Effective Java 3rd Edition Chapter 4 Classes and Interfaces
[Read Effective Java] Chapter 3 Item 10 "Always Override toString"
Effective Java 3rd Edition Chapter 7 Lambda and Streams
[Read Effective Java] Chapter 3 Item 12 "Considering Implementation of Comparable"
[Read Effective Java] Chapter 2 Item 6 "Remove obsolete object references"
Java Performance Chapter 2 Performance Testing Approach
Java
Effective Java 3rd Edition Chapter 2 Object Creation and Disappearance
Java
From Ineffective Java to Effective Java
Effective Java 3rd Edition Chapter 3 Methods Common to All Objects
[Effective Java] Remove obsolete object references
Java Performance Chapter 5 Garbage Collection Basics
[Effective Java] Avoid creating unnecessary objects
[Read Effective Java] Chapter 3 Item 9 "When overriding equals, always override hashCode"
[Read Effective Java] Chapter 2 Item 5 "Avoid the creation of unnecessary objects"
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
java (override)
java (method)
Java Day 2018
Java string
Java static
Java serialization
java beginner 4
[Read Effective Java] Chapter 2 Item 1 "Consider static factory methods instead of constructors"
JAVA paid
Studying Java ―― 4
Java (set)
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
Java memorandum
☾ Java / Collection
Java array