comparison src/main/java/org/monetdb/mcl/net/HandshakeOption.java @ 918:2543e24eb79a

Add final to more classes.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Wed, 24 Jul 2024 19:38:33 +0200 (9 months ago)
parents e890195256ac
children d416e9b6b3d0
comparison
equal deleted inserted replaced
917:c2164decf7f1 918:2543e24eb79a
73 long numericValue() { 73 long numericValue() {
74 return desiredValue ? 1 : 0; 74 return desiredValue ? 1 : 0;
75 } 75 }
76 } 76 }
77 77
78 public static class AutoCommit extends BooleanOption { 78 public final static class AutoCommit extends BooleanOption {
79 public AutoCommit(boolean autoCommit) { 79 public AutoCommit(boolean autoCommit) {
80 super(1, "auto_commit", autoCommit); 80 super(1, "auto_commit", autoCommit);
81 } 81 }
82 } 82 }
83 83
84 public static class ReplySize extends HandshakeOption<Integer> { 84 public final static class ReplySize extends HandshakeOption<Integer> {
85 public ReplySize(int size) { 85 public ReplySize(int size) {
86 super(2, "reply_size", size); 86 super(2, "reply_size", size);
87 } 87 }
88 88
89 @Override 89 @Override
90 long numericValue() { 90 long numericValue() {
91 return desiredValue; 91 return desiredValue;
92 } 92 }
93 } 93 }
94 94
95 public static class SizeHeader extends BooleanOption { 95 public final static class SizeHeader extends BooleanOption {
96 public SizeHeader(boolean sendHeader) { 96 public SizeHeader(boolean sendHeader) {
97 super(3, "size_header", sendHeader); 97 super(3, "size_header", sendHeader);
98 set(sendHeader); 98 set(sendHeader);
99 } 99 }
100 } 100 }
101 101
102 public static class TimeZone extends HandshakeOption<Integer> { 102 public final static class TimeZone extends HandshakeOption<Integer> {
103 public TimeZone(int offset) { 103 public TimeZone(int offset) {
104 super(5, "time_zone", offset); 104 super(5, "time_zone", offset);
105 } 105 }
106 106
107 @Override 107 @Override