|
14 | 14 | import java.util.Objects;
|
15 | 15 |
|
16 | 16 | import javax.annotation.Nonnull;
|
17 |
| -import javax.annotation.Nullable; |
18 | 17 | import javax.annotation.concurrent.Immutable;
|
19 | 18 |
|
20 | 19 | /**
|
21 |
| - * Metadata for a Google Cloud Storage object. |
| 20 | + * Metadata for a Google Cloud Storage file. |
22 | 21 | */
|
23 | 22 | @Immutable
|
24 | 23 | final class CloudStorageObjectAttributes implements CloudStorageFileAttributes {
|
@@ -47,67 +46,36 @@ public FileTime lastModifiedTime() {
|
47 | 46 | return creationTime();
|
48 | 47 | }
|
49 | 48 |
|
50 |
| - /** |
51 |
| - * Returns the HTTP etag hash for this object. |
52 |
| - */ |
53 | 49 | @Override
|
54 | 50 | public Optional<String> etag() {
|
55 | 51 | return Optional.fromNullable(info.etag());
|
56 | 52 | }
|
57 | 53 |
|
58 |
| - /** |
59 |
| - * Returns the mime type (e.g. text/plain) if it was set for this object. |
60 |
| - */ |
61 | 54 | @Override
|
62 | 55 | public Optional<String> mimeType() {
|
63 | 56 | return Optional.fromNullable(info.contentType());
|
64 | 57 | }
|
65 | 58 |
|
66 |
| - /** |
67 |
| - * Returns the ACL value on this Cloud Storage object. |
68 |
| - * |
69 |
| - * @see "https://developers.google.com/storage/docs/reference-headers#acl" |
70 |
| - */ |
71 | 59 | @Override
|
72 | 60 | public Optional<List<Acl>> acl() {
|
73 | 61 | return Optional.fromNullable(info.acl());
|
74 | 62 | }
|
75 | 63 |
|
76 |
| - /** |
77 |
| - * Returns the {@code Cache-Control} HTTP header value, if set on this object. |
78 |
| - * |
79 |
| - * @see "https://developers.google.com/storage/docs/reference-headers#cachecontrol" |
80 |
| - */ |
81 | 64 | @Override
|
82 | 65 | public Optional<String> cacheControl() {
|
83 | 66 | return Optional.fromNullable(info.cacheControl());
|
84 | 67 | }
|
85 | 68 |
|
86 |
| - /** |
87 |
| - * Returns the {@code Content-Encoding} HTTP header value, if set on this object. |
88 |
| - * |
89 |
| - * @see "https://developers.google.com/storage/docs/reference-headers#contentencoding" |
90 |
| - */ |
91 | 69 | @Override
|
92 | 70 | public Optional<String> contentEncoding() {
|
93 | 71 | return Optional.fromNullable(info.contentEncoding());
|
94 | 72 | }
|
95 | 73 |
|
96 |
| - /** |
97 |
| - * Returns the {@code Content-Disposition} HTTP header value, if set on this object. |
98 |
| - * |
99 |
| - * @see "https://developers.google.com/storage/docs/reference-headers#contentdisposition" |
100 |
| - */ |
101 | 74 | @Override
|
102 | 75 | public Optional<String> contentDisposition() {
|
103 | 76 | return Optional.fromNullable(info.contentDisposition());
|
104 | 77 | }
|
105 | 78 |
|
106 |
| - /** |
107 |
| - * Returns user-specified metadata associated with this object. |
108 |
| - * |
109 |
| - * @see "https://developers.google.com/storage/docs/reference-headers#contentdisposition" |
110 |
| - */ |
111 | 79 | @Override
|
112 | 80 | public ImmutableMap<String, String> userMetadata() {
|
113 | 81 | if (null == info.metadata()) {
|
@@ -147,7 +115,7 @@ public Object fileKey() {
|
147 | 115 | }
|
148 | 116 |
|
149 | 117 | @Override
|
150 |
| - public boolean equals(@Nullable Object other) { |
| 118 | + public boolean equals(Object other) { |
151 | 119 | return this == other
|
152 | 120 | || other instanceof CloudStorageObjectAttributes
|
153 | 121 | && Objects.equals(info, ((CloudStorageObjectAttributes) other).info);
|
|
0 commit comments