Speed up enumeration lookups 31/17531/8
authorRobert Varga <rovarga@cisco.com>
Wed, 1 Apr 2015 11:17:56 +0000 (13:17 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 2 Apr 2015 08:21:34 +0000 (10:21 +0200)
commitf97618f25dfc073d1de5d883f1794eefdb3e5c16
tree6077dc98649d921b5b42e258a2d525bd3c767a39
parent08330312d23af971d176ad1679b7e89409096204
Speed up enumeration lookups

All enumeration types have a static values() method, which returns an
array of possible values. Use that instead of cascading ifs to get the
appropriate enum value.

Change-Id: Ic91cd04ac3e64e7d8263e6535e354f7ef2d713cf
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionProxy.java