Toggle navigation
Home
java.lang.String to org.apache.mailet.AttributeName
No. of Instances - 64
No. of Commits - 7
No. of Projects - {'james-project'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
Optional.ofNullable(attr).orElse(new HashMap<>())
to
toAttributeMap(attr)
key
to
attribute.getName()
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()))
ATTRIBUTE_1
to
ATTRIBUTE_1.asString()
Boolean.TRUE
to
AttributeValue.of(Boolean.TRUE)
MAIL_ATTRIBUTE_NAME1
to
MAIL_ATTRIBUTE_NAME1.asString()
MAIL_ATTRIBUTE_NAME2
to
MAIL_ATTRIBUTE_NAME2.asString()
MAIL_ATTRIBUTE_NAME1
to
MAIL_ATTRIBUTE_NAME1.asString()
MAIL_ATTRIBUTE_NAME2
to
MAIL_ATTRIBUTE_NAME2.asString()
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
ImmutableMap.of("1","2")
to
value
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
ImmutableMap.of(expectedKey,content.getBytes(StandardCharsets.UTF_8))
to
value
content.getBytes(StandardCharsets.UTF_8)
to
value
MAIL_ATTRIBUTE_NAME1
to
MAIL_ATTRIBUTE_NAME1.asString()
MAIL_ATTRIBUTE_NAME2
to
MAIL_ATTRIBUTE_NAME2.asString()
MAIL_ATTRIBUTE_NAME1
to
MAIL_ATTRIBUTE_NAME1.asString()
MAIL_ATTRIBUTE_NAME1
to
MAIL_ATTRIBUTE_NAME1.asString()
MAIL_ATTRIBUTE_NAME2
to
MAIL_ATTRIBUTE_NAME2.asString()
MAIL_ATTRIBUTE_NAME1
to
MAIL_ATTRIBUTE_NAME1.asString()
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
MAIL_ATTRIBUTE
to
MAIL_ATTRIBUTE.asString()
ImmutableList.of(ATTACHMENT_CONTENT)
to
Optional.of(new Attribute(MAIL_ATTRIBUTE,AttributeValue.of(ImmutableList.of(AttributeValue.ofSerializable(ATTACHMENT_CONTENT)))))
content
to
Optional.of(new Attribute(MAIL_ATTRIBUTE,AttributeValue.of(content)))
probability
to
AttributeValue.of(probability)
signerinfolist
to
AttributeValue.ofAny(signerinfolist)
getInitParameterAsOptional(Configuration.ATTRIBUTE).orElseThrow(() -> new MailetException("No value for " + Configuration.ATTRIBUTE + " parameter was provided."))
to
getInitParameterAsOptional(Configuration.ATTRIBUTE).map(AttributeName::of).orElseThrow(() -> new MailetException("No value for " + Configuration.ATTRIBUTE + " parameter was provided."))
list
to
AttributeValue.ofAny(list)
probability
to
AttributeValue.of(probability)
Cascading Type Change (Different)
Serializable
to
Attribute
Rename Method invocation
attributes.keySet()
to
attributes.keySet().stream().map(AttributeName::asString)
attributes.keySet()
to
attributes.keySet().stream().map(AttributeName::asString)
attributes.keySet()
to
attributes.keySet().stream().map(AttributeName::asString)
isNull
to
isEmpty
Other
new HashMap<>(attributes)
to
attributes
Update argument list (Method invocation)
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
setAttribute
to
setAttribute
Rename Variable
REMOVED_ATTACHMENTS_ATTRIBUTE_KEY
to
REMOVED_ATTACHMENTS