Toggle navigation
Home
java.util.Optional to java.util.stream.Stream
No. of Instances - 22
No. of Commits - 10
No. of Projects - {'jgit', 'AxonFramework', 'neo4j', 'speedment', 'james-project', 'google-java-format'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Add or Remove Method invocation
pair.getLeft()
to
oldFlags
pair
to
composedMessageIdWithMetaData.getComposedMessageId().getMailboxId()
pair
to
composedMessageIdWithMetaData.getComposedMessageId()
pair.getRight().getComposedMessageId().getMailboxId()
to
composedMessageIdWithMetaData
pair.getRight().getComposedMessageId()
to
composedMessageIdWithMetaData
pair.getRight()
to
composedMessageIdWithMetaData
findFirst
to
filter
findFirst
to
filter
ofNullable
to
stream
map
to
flatMap
entityManager().createQuery("SELECT new org.axonframework.eventsourcing.eventstore.GenericDomainEventEntry(" + "e.type, e.aggregateIdentifier, e.sequenceNumber, e.eventIdentifier, " + "e.timeStamp, e.payloadType, e.payloadRevision, e.payload, e.metaData) FROM " + snapshotEventEntryEntityName() + " e "+ "WHERE e.aggregateIdentifier = :id "+ "ORDER BY e.sequenceNumber DESC").setParameter("id",aggregateIdentifier).setMaxResults(1).getResultList().stream().findFirst()
to
entityManager().createQuery("SELECT new org.axonframework.eventsourcing.eventstore.GenericDomainEventEntry(" + "e.type, e.aggregateIdentifier, e.sequenceNumber, e.eventIdentifier, " + "e.timeStamp, e.payloadType, e.payloadRevision, e.payload, e.metaData) FROM " + snapshotEventEntryEntityName() + " e "+ "WHERE e.aggregateIdentifier = :id "+ "ORDER BY e.sequenceNumber DESC").setParameter("id",aggregateIdentifier).setMaxResults(1).getResultList().stream()
findFirst
to
filter
Rename Variable
findApplicableRule
to
findApplicableRules
maybeMatchingRule
to
matchingRules
indexIn
to
indexes
readSnapshot
to
readSnapshots
readSnapshot
to
readSnapshots
readSnapshot
to
readSnapshots
match
to
m
Cascading Type Change (Similar)
Optional<Rule>
to
Stream<Rule>
Optional<Ref>
to
Stream<Ref>
Rename Method invocation
findApplicableRule
to
findApplicableRules
findLastSnapshot
to
findSnapshots
Wrap or Un-wrap
fetchInTransaction
to
fetchInTransaction