@AllArgsConstructor @Value class MinnowSpot { private final WorldPoint loc; private final Instant time; }
@Value @Builder @AllArgsConstructor @JsonPropertyOrder({"format", "href", "value"}) public class Doc {
@Value @Wither @AllArgsConstructor(access = AccessLevel.PRIVATE) @NoArgsConstructor(force = true) class HalFormsProperty { private @NonNull String name; private Boolean readOnly; private String value;
@Value @Embeddable @RequiredArgsConstructor @SuppressWarnings("serial") public static class CustomerId implements Serializable { private final Long customerId; CustomerId() { this.customerId = null; } } }
/** * {@link BulkOperationContext} holds information about * {@link org.springframework.data.mongodb.core.BulkOperations.BulkMode} the entity in use as well as references to * {@link QueryMapper} and {@link UpdateMapper}. * * @author Christoph Strobl * @since 2.0 */ @Value static class BulkOperationContext { @NonNull BulkMode bulkMode; @NonNull Optional<? extends MongoPersistentEntity<?>> entity; @NonNull QueryMapper queryMapper; @NonNull UpdateMapper updateMapper; } }
/** * Value object to define lookup keys for projections. * * @author Oliver Gierke */ @Value @RequiredArgsConstructor(access = AccessLevel.PRIVATE) static final class ProjectionDefinition { private final @NonNull Class<?> sourceType, targetType; private final @NonNull String name; /** * Creates a new {@link ProjectionDefinitionKey} for the given source type and name; * * @param sourceType must not be {@literal null}. * @param targetType must not be {@literal null}. * @param name must not be {@literal null} or empty. */ static ProjectionDefinition of(Class<?> sourceType, Class<?> targetType, String name) { Assert.hasText(name, "Name must not be null or empty!"); return new ProjectionDefinition(sourceType, targetType, name); } } }
@Value public static class Picture { String large, medium, small; } }
@Value @Builder(toBuilder=true) @AllArgsConstructor public class PostTag { private final Integer postTagId; private final Integer appId; private final String name; private final LocalDateTime lastUpdateTs; }
/** * Temporary container for a string-base {@literal URI} and {@link HttpHeaders}. */ @Value @RequiredArgsConstructor private static class UriStringAndHeaders { private final String uri; private final HttpHeaders httpHeaders; }
@Slf4j @Component @Value public class DescribeEnvironmentApi { @NonNull private ApiModelMapper apiModelMapper; @NonNull private EnvironmentRepository environmentRepository; public DescribeEnvironmentResponse describeEnvironment( @NonNull final DescribeEnvironmentRequest describeEnvironmentRequest) throws ResourceNotFoundException, InternalServiceException { final com.amazonaws.blox.dataservicemodel.v1.model.EnvironmentId environmentIdFromRequest = describeEnvironmentRequest.getEnvironmentId(); final EnvironmentId environmentId = apiModelMapper.toModelEnvironmentId(environmentIdFromRequest); try { final Environment environment = environmentRepository.getEnvironment(environmentId); return DescribeEnvironmentResponse.builder() .environment(apiModelMapper.toWrapperEnvironment(environment)) .build(); } catch (final ResourceNotFoundException | InternalServiceException e) { log.error(e.getMessage(), e); throw e; } catch (final Exception e) { log.error(e.getMessage(), e); throw new InternalServiceException(e.getMessage(), e); } } }
/** * @author Thomas Darimont */ @Value public class SubscriptionSummary { String product; Long usageCount; }
@AllArgsConstructor @Value @Builder public class MultiTenantSessionSource { private SessionFactory sessionFactory; private MultiTenantDataSourceFactory dataSourceFactory; private MultiTenantUnitOfWorkAwareProxyFactory unitOfWorkAwareProxyFactory; }
@AllArgsConstructor @Value class OverlayBounds
/** * Temporary container for a {@link URI}-based {@literal URI} and {@link HttpHeaders}. */ @Value @RequiredArgsConstructor private static class URIAndHeaders { private final URI uri; private final HttpHeaders httpHeaders; } }