code: public static Inet6Address getIPv4MappedIPv6Address(Inet4Address ip) {
          byte[] from = ip.getAddress();
          byte[] bytes = new byte[] {
                  0x0,0x0,0x0,0x0,
                  0x0,0x0,0x0,0x0,
                  0x0,0x0,(byte)0xff,(byte)0xff,
                  from[0],from[1],from[2],from[3]
          };
  
          return getInet6Address(bytes);
      }
docs: Generates an "IPv4 mapped" {@link Inet6Address} from the provided {@link Inet4Address}.