Toggle navigation
Home
java.io.Serializable to org.apache.mailet.Attribute
No. of Instances - 9
No. of Commits - 3
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Other
previous
to
previous
new HashMap<>(attributes)
to
attributes
Add or Remove Method invocation
builder().mimeMessage(msg).recipients(ImmutableList.copyOf(recipients)).name(Optional.ofNullable(name)).sender(MaybeSender.of(sender)).state(Optional.ofNullable(state)).errorMessage(Optional.ofNullable(errorMessage)).lastUpdated(Optional.ofNullable(lastUpdated)).attributes(attributes).size(size).remoteAddr(remoteAddr).remoteHost(remoteHost)
to
builder().mimeMessage(msg).recipients(ImmutableList.copyOf(recipients)).name(Optional.ofNullable(name)).sender(MaybeSender.of(sender)).state(Optional.ofNullable(state)).errorMessage(Optional.ofNullable(errorMessage)).lastUpdated(Optional.ofNullable(lastUpdated)).attributes(attributes.values()).size(size).remoteAddr(remoteAddr).remoteHost(remoteHost)
map
to
stream
name
to
attribute.getName()
name
to
attribute.getName()
attributes
to
attributes.entrySet().stream().map(entry -> Attribute.convertToAttribute(entry.getKey(),entry.getValue())).collect(ImmutableMap.toImmutableMap(Attribute::getName,Function.identity()))
Rename Method invocation
attributes.keySet()
to
attributes.keySet().stream().map(AttributeName::asString)