lombok.Setter类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中lombok.Setter类的一些代码示例,展示了Setter类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Setter类的具体详情如下:
包路径:lombok.Setter
类名称:Setter

Setter介绍

暂无

代码示例

代码示例来源:origin: hs-web/hsweb-framework

  1. @Slf4j
  2. public class EnumDictOptionConverter<T extends EnumDict> implements OptionConverter {
  3. @Getter
  4. @Setter
  5. protected Function<Stream<String>, String> dictToText = stream -> stream.collect(Collectors.joining(","));
  6. @Setter
  7. @Getter
  8. protected Function<String, List<Object>> splitter = str -> Arrays.asList(str.split("[, ; ;]"));
  9. @Getter
  10. @Setter
  11. protected boolean writeObject;

代码示例来源:origin: runelite/runelite

  1. @Slf4j
  2. @PluginDescriptor(
  3. name = "Ground Markers",
  4. @Getter(AccessLevel.PACKAGE)
  5. @Setter(AccessLevel.PACKAGE)
  6. private boolean hotKeyPressed;
  7. @Getter(AccessLevel.PACKAGE)
  8. private final List<WorldPoint> points = new ArrayList<>();
  9. @Inject
  10. private Client client;
  11. @Inject
  12. private GroundMarkerInputListener inputListener;
  13. @Inject
  14. private ConfigManager configManager;

代码示例来源:origin: runelite/runelite

  1. };
  2. @Inject
  3. private Client client;
  4. @Inject
  5. private OverlayManager overlayManager;
  6. @Inject
  7. private HerbiboarOverlay overlay;
  8. private HerbiboarMinimapOverlay minimapOverlay;
  9. @Getter
  10. @Setter
  11. private Set<Integer> shownTrails = new HashSet<>();
  12. @Getter
  13. @Setter
  14. private HerbiboarTrail currentTrail;
  15. @Getter
  16. @Setter
  17. private int currentPath;
  18. @Getter
  19. @Setter
  20. private int finishId;

代码示例来源:origin: apache/incubator-shardingsphere

  1. /**
  2. * Route unit.
  3. *
  4. * @author gaohongtao
  5. * @author maxiaoguang
  6. */
  7. @RequiredArgsConstructor
  8. @Getter
  9. @Setter
  10. @EqualsAndHashCode
  11. @ToString
  12. public final class RouteUnit {
  13. private final String dataSourceName;
  14. private final SQLUnit sqlUnit;
  15. }

代码示例来源:origin: abixen/abixen-platform

  1. @Getter
  2. @Setter
  3. @Accessors(chain = true)
  4. @ToString
  5. public class SimpleUserDto {
  6. private Long id;
  7. private String username;
  8. }

代码示例来源:origin: apache/incubator-shardingsphere

  1. /**
  2. * Inline sharding strategy configuration for YAML.
  3. *
  4. * @author zhangliang
  5. */
  6. @Getter
  7. @Setter
  8. public final class YamlInlineShardingStrategyConfiguration implements YamlShardingStrategyConfiguration {
  9. private String shardingColumn;
  10. private String algorithmExpression;
  11. }

代码示例来源:origin: paypal/PayPal-Java-SDK

  1. @Getter @Setter
  2. @EqualsAndHashCode(callSuper = true)
  3. @Accessors(chain = true)
  4. public class BillingAgreementToken extends PayPalModel {
  5. /**
  6. * Default Constructor
  7. */
  8. public BillingAgreementToken() {
  9. }
  10. }

代码示例来源:origin: allure-framework/allure2

  1. @Getter
  2. @Setter
  3. @Accessors(chain = true)
  4. public class TrendItem implements Serializable {

代码示例来源:origin: apache/incubator-shardingsphere

  1. /**
  2. * Limit value.
  3. *
  4. * @author zhangliang
  5. */
  6. @AllArgsConstructor
  7. @Getter
  8. @Setter
  9. @ToString
  10. public final class LimitValue {
  11. private int value;
  12. private int index;
  13. private boolean boundOpened;
  14. }

代码示例来源:origin: hs-web/hsweb-framework

  1. @EqualsAndHashCode
  2. @Getter
  3. @Setter
  4. class CacheKey {
  5. private String className;
  6. private String method;
  7. private boolean children;
  8. private String type;
  9. private boolean queryController;
  10. }

代码示例来源:origin: apache/incubator-gobblin

  1. @Slf4j
  2. public class TokenizedFileDownloader extends FileDownloader<String> {
  3. public static final String DEFAULT_TOKEN = "\n";
  4. @Setter
  5. private String token;
  6. @Setter
  7. private String charset;

代码示例来源:origin: jmxtrans/jmxtrans

  1. @Accessors(chain = true)
  2. public static final class Builder {
  3. @Nonnull private final String requestMethod;
  4. @Setter private int readTimeoutInMillis = 100;
  5. @Setter @Nullable private String authorization = null;
  6. @Setter @Nullable private String contentType = null;
  7. public Builder(@Nonnull String requestMethod) {
  8. this.requestMethod = requestMethod;
  9. }
  10. public HttpUrlConnectionConfigurer build() {
  11. return new HttpUrlConnectionConfigurer(
  12. requestMethod,
  13. readTimeoutInMillis,
  14. authorization,
  15. contentType
  16. );
  17. }
  18. }
  19. }

代码示例来源:origin: locationtech/geogig

  1. public @Accessors(fluent = true) @ToString class RevPersonBuilder {
  2. private @Setter @Nullable String name;
  3. private @Setter @Nullable String email;
  4. private @Setter long timeStamp;
  5. private @Setter int timeZoneOffset;
  6. public RevPerson build() {
  7. return build(name, email, timeStamp, timeZoneOffset);
  8. }
  9. public RevPerson build(@Nullable String name, @Nullable String email, long timeStamp,
  10. int timeZoneOffset) {
  11. return RevObjectFactory.defaultInstance().createPerson(name, email, timeStamp,
  12. timeZoneOffset);
  13. }
  14. }

代码示例来源:origin: runelite/runelite

  1. tags = {"external", "integration", "notifications", "panel", "prices", "trade"}
  2. @Slf4j
  3. public class GrandExchangePlugin extends Plugin
  4. @Getter(AccessLevel.PACKAGE)
  5. private NavigationButton button;
  6. @Getter(AccessLevel.PACKAGE)
  7. private GrandExchangePanel panel;
  8. @Getter(AccessLevel.PACKAGE)
  9. @Setter(AccessLevel.PACKAGE)
  10. private boolean hotKeyPressed;
  11. @Inject
  12. private GrandExchangeInputListener inputListener;
  13. @Inject
  14. private ItemManager itemManager;
  15. @Inject
  16. private MouseManager mouseManager;

代码示例来源:origin: runelite/runelite

  1. private static final String SCRIPT_EVENT_BLOCK_CHAT_INPUT = "blockChatInput";
  2. @Inject
  3. private Client client;
  4. @Inject
  5. private ClientThread clientThread;
  6. @Inject
  7. private KeyManager keyManager;
  8. private WASDCameraListener inputListener;
  9. @Getter(AccessLevel.PACKAGE)
  10. @Setter(AccessLevel.PACKAGE)
  11. private boolean typing;

代码示例来源:origin: apache/incubator-shardingsphere

  1. @Getter
  2. @EqualsAndHashCode
  3. @ToString
  4. public class AggregationSelectItem implements SelectItem {
  5. @Setter
  6. private int index = -1;

代码示例来源:origin: yujunhao8831/spring-boot-start-current

  1. /**
  2. * @author : 披荆斩棘
  3. * @date : 2017/6/21
  4. */
  5. @Getter
  6. @Setter
  7. @Accessors( chain = true )
  8. @ToString( callSuper = true )
  9. public class PermissionResourceVO extends PermissionResource implements RecursionUtils.ParentChildrenRecursion< PermissionResourceVO > {
  10. private List< String > methods = new ArrayList<>();
  11. private List< PermissionResourceVO > children = new ArrayList<>();
  12. }

代码示例来源:origin: apache/incubator-shardingsphere

  1. /**
  2. * Orchestration sharding configuration for YAML.
  3. *
  4. * @author caohao
  5. */
  6. @Getter
  7. @Setter
  8. public final class YamlOrchestrationShardingRuleConfiguration extends YamlShardingConfiguration {
  9. private YamlOrchestrationConfiguration orchestration;
  10. }

代码示例来源:origin: paypal/PayPal-Java-SDK

  1. @Getter @Setter
  2. @EqualsAndHashCode(callSuper = true)
  3. @Accessors(chain = true)
  4. public class CreateProfileResponse extends WebProfile {
  5. /**
  6. * Default Constructor
  7. */
  8. public CreateProfileResponse() {
  9. }
  10. }

代码示例来源:origin: baomidou/mybatis-plus

  1. @Accessors(chain = true)
  2. public class TableInfo implements Constants {
  3. @Setter(AccessLevel.NONE)
  4. @Getter(AccessLevel.NONE)
  5. private String allSqlSelect;
  6. @Setter(AccessLevel.NONE)
  7. @Getter(AccessLevel.NONE)
  8. private String sqlSelect;

相关文章

Setter类方法