Class OnReplaced

  • All Implemented Interfaces:
    ObjectName

    public final class OnReplaced
    extends Object
    implements ObjectName
    Object name replaced. This is object name that parses raw sting like: - "org.eolang.text|0.1.0" into "org.eolang.text" and "4b19944" - "org.eolang.string|a1b2c3d" into "org.eolang.string" and "be83d9a" Pay attention to that versions transformed into narrow hashes. If a version is not provided - behaves like OnUnversioned.
    Since:
    0.30
    • Constructor Detail

      • OnReplaced

        public OnReplaced​(ObjectName origin)
        Constructor.
        Parameters:
        origin - Origin object name.
      • OnReplaced

        public OnReplaced​(ObjectName origin,
                          Map<String,​? extends CommitHash> all)
        Constructor.
        Parameters:
        origin - Origin object name.
        all - All hashes.
      • OnReplaced

        public OnReplaced​(String origin)
        Constructor.
        Parameters:
        origin - Raw string.
      • OnReplaced

        public OnReplaced​(String origin,
                          Map<String,​? extends CommitHash> all)
        Constructor.
        Parameters:
        origin - Raw string.
        all - All hashes.